wawylysys 發表於 2013-8-6 21:20 8 O) o& v' K# @8 {2 c# S6 M( o
在wp後台找到外觀——編輯,然後看右面那些php文件5 \' Q2 `7 r! F5 W) d9 \9 {9 A; ^( d
找到comments.php,然後搜索你要去掉的字符,找到的話相 ... # m' @, r" V- b, H9 l, B: |: @
嗯,在comments.php找了半天也沒找到相應的,幫忙再給看一下要刪除哪一組代碼呢?<?php// Do not delete these lines
2 l9 t2 o9 Z) ?if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+ d4 J* X; T, p8 F Cdie (__('Please do not load this page directly. Thanks!', TEMPLATE_DOMAIN));
& |. c. L, T, M5 R8 D bif ( post_password_required() ) { ?>
0 {# T* v& l/ r5 l" a3 |, L( y& ?. A<p><?php _e('This post is password protected. Enter the password to view comments.', TEMPLATE_DOMAIN); ?></p>1 w! P8 |1 _/ m- m+ x' o
<?php
/ Q. ~$ s7 Z9 K- Hreturn;
' L* R5 e" B! S" A, y3 A# j}
" e, m7 N" D+ ^3 J% p( C5 t- D$cpage = get_query_var('cpage');
* i0 Y3 \/ k' w, l?>4 \! I3 Q$ h h$ U& n( D8 d/ o5 h: ^
3 b, z2 @( ~# G- @6 F6 n<!-- You can start editing here. -->
/ _, j, o! I/ K9 q) f<div class="commentpost" id="commentpost">& B1 w8 V, E* y6 r- u; o: n$ [
. }( ?* R; Y) w+ D9 @6 S6 h5 l<?php if ( have_comments() ) : ?>
+ E- ]8 W4 `6 X+ `- `: E$ J4 v0 {+ f' t<?php if ( ! empty($comments_by_type['comment']) ) : ?>
~8 m1 {6 \. C9 S8 h4 j9 E; _7 H' ]+ x. T4 u+ e U, F
<h4 id="comments"><span><?php comments_number(__('No Comments Yet', TEMPLATE_DOMAIN), __('1 Comment Already', TEMPLATE_DOMAIN), __('% Comments Already', TEMPLATE_DOMAIN)); ?></span></h4>. O s6 {3 @0 e# c+ R% u8 v; T9 {
+ W# a2 ~7 R, q% {9 ^9 a7 L/ d- Y1 h<div id="post-navigator-single">8 U% i3 f( k9 j
<div id="rssfeed" class="alignleft"><a title="<?php __('stay updated with', TEMPLATE_DOMAIN); ?> <?php the_title(); ?>" href="<?php echo home_url() ?>/?feed=rss2&p=<?php the_ID(); ?>"><?php _e('Subscribe to comments feed', TEMPLATE_DOMAIN); ?></a></div>4 I. G& M% f" d* b
</div>& i/ ~ U: V8 |
1 B; j! {1 f) R; t0 ~
<?php do_action( 'bp_before_blog_comment_list' ) ?>$ x3 P6 F6 p9 G" I7 [& q" [9 B
<ol class="commentlist">+ b( ?" r9 C' I ?) I; F
<?php wp_list_comments('type=comment&callback=get_the_list_comments'); ?>+ I8 l& O: B( K, q) D8 q
</ol>
, h* y: [! \7 d C; u' e- T<?php do_action( 'bp_after_blog_comment_list' ) ?>0 q/ S- W* ]- O, ^$ {' ]" G
$ h, U8 `; P9 K6 s+ E<div id="post-navigator-single">! i6 ]% }+ Y( }
<div class="alignright"><?php if(function_exists('paginate_comments_links')) { paginate_comments_links(); } ?></div>
. S& U9 C6 r8 q+ Z8 O$ D" A</div>
( e6 n- V( g3 m: w
- j S! l( v, k$ ^3 d<?php endif; ?>
# ~4 M( }" ~1 \0 |- @
) N+ j* Y, ]/ L% T/ }0 B<?php if($cpage == '1') : ?>
- k' \ a3 y* e+ w$ K0 _<?php if ( ! empty($comments_by_type['pings']) ) : ?>
2 D. q2 p5 a( {# m0 M7 U$ p! }, M<h4><span><?php echo get_wp_comment_count('pings'); ?></span></h4>
; N0 p8 b+ a. H<ol class="pinglist">
8 P, f3 Z7 N: W+ B! ?1 S( ~3 W Y<?php wp_list_comments('type=pings&callback=get_the_list_pings'); ?>
& g9 v, R/ h9 h2 H6 i</ol>
! L! L n: k' Z<?php endif; ?>
0 a+ J* w8 m, H0 {( q<?php endif; ?>
8 o& J; w! E) j
, W N; p8 P: w# \4 j( B# Z7 c# N% }2 O f$ M- a8 |
<?php else : // this is displayed if there are no comments so far ?> k: a' R5 g. f& |; D" W7 U* { H
- h9 ?2 y5 {6 a6 V- n) n! L1 n<?php if ('open' != $post->comment_status) : ?>
. i- O' j0 b+ [# \$ c! w! [ <!-- If comments are open, but there are no comments. -->
! w, g7 @% T% a, M- I' z' X<?php else : // comments are closed ?>% _: q% h3 W+ ]; z% ~7 \7 ^
<?php endif; ?>
4 X6 @, X( ]* A3 m( [; `. I }+ K1 n! [+ p! _+ }0 E/ w6 a* E
<?php endif; //check have_comments() ?>7 R: Z9 X$ Z5 _: `, }
% ?2 A, E$ h- i% h& `* ^
<?php if ('open' == $post->comment_status) : ?>
# N, @: U2 O$ Z2 y' l) R+ i6 n$ E' G<?php comment_form(); ?>- c$ }1 e% Z) H" l
<?php endif; // if you delete this the sky will fall on your head ?>3 ~5 s2 q4 k) {9 Q, C
! p3 i8 r1 }3 {8 u/ U7 C+ w
</div> 1 _ [2 d' B! e0 [. ?5 ]" V% U3 H1 @! n
% V$ {# ^( o! Y; P
. T2 l# o: k. y R8 F) i4 u
|