cleey
望着那一丝海线,若隐若现。落日下的海霞,数不尽的美,看不完的醉
wordpress评论样式

修改wordpress 评论样式:
修改位置:wordpress/wp-includes/default-widgets.php
找到下面的位置,注释的是原本代码,修改成后面的代码:
 foreach ( (array) $comments as $comment) {
//$output .= '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_
comment_author_link(), '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
$output .= '<li class="recentcomments">'.sprintf(_x('%1$s', 'widgets'), '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . mb_strimwi
dth(strip_tags($comment->comment_content),0,38,'','utf-8') . '</a>') . '</li>';
}

结果对比
修改前:
comment1
修改后:
comment2
<< 上一篇 wordpress添加css,js 下一篇 >>
文章标签
随意 | Created At 2014 By William Clinton | 蜀ICP备14002619号-4 |