wawylysys 發表於 2013-8-6 21:20 
5 `2 J0 q: p" c M- O/ j在wp後台找到外觀——編輯,然後看右面那些php文件
5 D4 e5 Z! n6 Z f) S7 d- J* u& s W找到comments.php,然後搜索你要去掉的字符,找到的話相 ... # r! I' q9 g. m& ~, L
嗯,在comments.php找了半天也沒找到相應的,幫忙再給看一下要刪除哪一組代碼呢?<?php// Do not delete these lines5 U7 X9 q) d# F) M# H
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
" [9 Z9 l* J; t" ?5 k6 p: X- d D wdie (__('Please do not load this page directly. Thanks!', TEMPLATE_DOMAIN));4 L$ q. V; a9 Q! q9 B- q
if ( post_password_required() ) { ?>
6 B7 Y2 C2 g' f: C, X2 E<p><?php _e('This post is password protected. Enter the password to view comments.', TEMPLATE_DOMAIN); ?></p>3 j7 w9 D) E2 m7 D
<?php3 }; d- U- b: V
return;
8 B3 `) k3 p& R# l l& s0 n}! j8 I7 p v4 X
$cpage = get_query_var('cpage');
, ~/ v; L8 C: n# U?>
0 l0 y( G5 G% c; W. v4 b- s: C. o' \! r: {% J6 x
<!-- You can start editing here. -->
9 X: A6 H# z6 e8 z) V<div class="commentpost" id="commentpost"> k4 U" y8 K g9 O0 g. S; Y' B2 T
# |( |( R; P& e# V# [
<?php if ( have_comments() ) : ?>
8 D, e4 T1 D1 v' P) m/ s# {<?php if ( ! empty($comments_by_type['comment']) ) : ?>$ N; ?" f* P3 i, F! W
+ Q% ^% ^: V8 o7 C( H' u8 l
<h4 id="comments"><span><?php comments_number(__('No Comments Yet', TEMPLATE_DOMAIN), __('1 Comment Already', TEMPLATE_DOMAIN), __('% Comments Already', TEMPLATE_DOMAIN)); ?></span></h4>
9 m& n3 s0 K7 h7 E0 G) j
* ~1 T3 l! J3 F* V<div id="post-navigator-single">2 d }. ]- u" I5 d
<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>
0 [0 i6 b6 K! A) D$ T3 E/ X0 p</div>
( ^2 [ L7 m3 q! x" K8 A6 G
% C7 I3 R1 F3 m7 I( a! t: ~. n) s<?php do_action( 'bp_before_blog_comment_list' ) ?>
* B' s- s! r6 t6 b( s<ol class="commentlist">3 w+ u4 z5 Q$ o+ U
<?php wp_list_comments('type=comment&callback=get_the_list_comments'); ?>
5 r9 I% c- b$ X m( j" d3 C) |. Q</ol>8 K# F4 y2 P3 w
<?php do_action( 'bp_after_blog_comment_list' ) ?>
3 k) C9 u6 l4 a9 b. F+ N. C
1 r8 ] q4 R- B: N9 U: J<div id="post-navigator-single">
# x+ u" a& S: x, p<div class="alignright"><?php if(function_exists('paginate_comments_links')) { paginate_comments_links(); } ?></div>
4 t, ~ P$ R( I0 J3 J9 \</div>+ @5 c$ ?6 q( x0 x
4 t% U, W2 K; y1 J v* A<?php endif; ?>
9 {7 T) l1 v3 h
" A7 W. b4 O; [) d' V, ]1 O<?php if($cpage == '1') : ?>
2 [7 O6 L' c+ O- o* C2 |<?php if ( ! empty($comments_by_type['pings']) ) : ?>/ `4 B6 G2 [1 L2 Y) y" w- q, H
<h4><span><?php echo get_wp_comment_count('pings'); ?></span></h4>
3 N1 \& y3 J8 `. \% M% j1 s<ol class="pinglist">
4 n4 Y4 h. H. Y+ g<?php wp_list_comments('type=pings&callback=get_the_list_pings'); ?>
0 e7 Y. l! K; N. t</ol>/ ?, t5 E ?' P9 `# \& x
<?php endif; ?>3 ~9 M& ] e( S# J% A; C
<?php endif; ?># A" }( ?0 C9 A0 `7 M9 O9 p3 e. d, q
- L8 V' G1 T" x/ A" D8 ~
9 B, y$ p: E* s4 |& [7 D0 w<?php else : // this is displayed if there are no comments so far ?>5 L1 P @" L. D- K# t
/ U/ I7 S( {' k' j/ V4 ?0 x
<?php if ('open' != $post->comment_status) : ?>
. W9 \" ~& S" z" e <!-- If comments are open, but there are no comments. -->" c/ ~2 p5 q1 i! ~
<?php else : // comments are closed ?>
4 @4 @ A7 P2 _! u$ w' `<?php endif; ?>
4 [5 ^; E; X6 n$ ^
/ y( e P" l* }/ E4 K7 T, a* f<?php endif; //check have_comments() ?>& f" r' a% l/ A" n% n9 H9 \
0 F3 b+ c F' Q1 L7 R4 {<?php if ('open' == $post->comment_status) : ?>! {! m$ e3 ~' B1 M: I
<?php comment_form(); ?>7 [4 v" X$ l4 t/ u( u. ]
<?php endif; // if you delete this the sky will fall on your head ?>
( } I1 @; Y% T3 F9 E: x: M( r m; c+ q" s" N
</div> 8 O4 E" @ {4 m7 \
* m+ I7 x3 b7 t+ L& |$ ~( F( L6 }
8 [5 V9 w) k$ Q, P' u/ x9 T
|