wawylysys 發表於 2013-8-6 21:20 & h, n0 t. B( R3 B9 b7 z, K6 ?
在wp後台找到外觀——編輯,然後看右面那些php文件
& C4 ^! k v7 B0 {找到comments.php,然後搜索你要去掉的字符,找到的話相 ...
, L! l- a9 F" y7 t, q嗯,在comments.php找了半天也沒找到相應的,幫忙再給看一下要刪除哪一組代碼呢?<?php// Do not delete these lines8 @) H$ u4 [% ]
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))4 V" D8 D K' C0 {3 y. z
die (__('Please do not load this page directly. Thanks!', TEMPLATE_DOMAIN));! H1 g* X5 Y+ J0 {4 Q7 a
if ( post_password_required() ) { ?>( R& y9 T4 Y/ \3 J+ `) L+ {
<p><?php _e('This post is password protected. Enter the password to view comments.', TEMPLATE_DOMAIN); ?></p>% I% G$ h4 d- F- _7 {% u$ |0 G
<?php1 l5 G* J) i/ W, J
return;
9 v0 F4 Q: v2 ?- `* B}) a" K$ m3 r" B
$cpage = get_query_var('cpage');
, ^- M$ s7 O6 B; S, R/ u V. \?>
* S$ {6 k7 }" [' p5 N. d- c3 K$ C* F: J* i* ^
<!-- You can start editing here. -->) n7 d- l/ f& X+ y# ?2 F: x
<div class="commentpost" id="commentpost">9 Y& u2 U/ {3 e+ _
/ k. }$ i5 a+ z8 g2 i0 y<?php if ( have_comments() ) : ?>
# y' b& Y& U3 Z. d9 k6 q$ \" o<?php if ( ! empty($comments_by_type['comment']) ) : ?>
* y- i1 h4 n ^6 h. V ?+ o/ I
$ I! Q9 M( x3 N. y8 h; U<h4 id="comments"><span><?php comments_number(__('No Comments Yet', TEMPLATE_DOMAIN), __('1 Comment Already', TEMPLATE_DOMAIN), __('% Comments Already', TEMPLATE_DOMAIN)); ?></span></h4>5 o* R* b8 X/ X0 ~+ N( I
- f! O& U) `; d# p
<div id="post-navigator-single">
( q) s* B' y( c3 H<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>9 _8 a2 G, r- `2 K
</div>
, z& E9 Z" K; J5 y0 g% L A1 Y
3 W: R/ F1 S* P- c& M; y: F<?php do_action( 'bp_before_blog_comment_list' ) ?>
% p* ~- G* C0 H* A8 s$ V<ol class="commentlist">1 ~, R& Q4 e& T+ f2 M4 f7 ~# Q F" a
<?php wp_list_comments('type=comment&callback=get_the_list_comments'); ?>7 v( V" R. Y4 U
</ol>6 F7 Z8 @, u8 w
<?php do_action( 'bp_after_blog_comment_list' ) ?>2 P: I8 w1 X, t$ F3 w+ x
& }7 @) S9 {' m4 s3 y u( c
<div id="post-navigator-single">
3 |3 }2 o! x f7 }1 v5 M% C- u<div class="alignright"><?php if(function_exists('paginate_comments_links')) { paginate_comments_links(); } ?></div>: G; j0 ~3 I" v' y
</div>7 c$ ~. R- t% m# S$ Q. ~# @3 {
# b: j( p% y9 k, C* V1 _; |<?php endif; ?>
1 {4 V0 t; f- ^$ w( m5 C
6 k1 o) c, c/ U) |" k5 [2 I<?php if($cpage == '1') : ?>' F& J* | ]. b# \, L6 f9 _5 {! k* D
<?php if ( ! empty($comments_by_type['pings']) ) : ?>$ Q( \- ^) d* R R; b4 P8 k
<h4><span><?php echo get_wp_comment_count('pings'); ?></span></h4>
5 w& `& R2 R% d t<ol class="pinglist">% ^6 W4 r' t+ \% }& ~* t
<?php wp_list_comments('type=pings&callback=get_the_list_pings'); ?>( P7 F, L& Q. f: C1 I, s- E& y
</ol>4 o$ s% |) w1 t4 n$ M* t
<?php endif; ?>+ q& d* _1 o) c7 h0 l, s
<?php endif; ?>7 S4 w$ j' d Q' B( v
( d% S. G- J5 D* @
% I5 N( G% r: D<?php else : // this is displayed if there are no comments so far ?>: G/ P7 z8 S2 C9 R3 w3 E' s
2 m7 D( d: u% C- E
<?php if ('open' != $post->comment_status) : ?> v* ~7 d- h4 _# w* k2 a9 G
<!-- If comments are open, but there are no comments. -->
& e+ }; X6 V/ |; v5 M0 P' n4 O+ q<?php else : // comments are closed ?>
, W F2 O1 o& ^. V<?php endif; ?>" C4 d% X l) @
; H. R7 N* r, J1 H, @
<?php endif; //check have_comments() ?>
' \; D0 h4 z) V' {2 H8 T z$ ]! M0 C# U) U) T
<?php if ('open' == $post->comment_status) : ?>) Y/ D( \. w9 w2 E2 J# K
<?php comment_form(); ?>
; h0 g# ?2 V1 U; ?8 C<?php endif; // if you delete this the sky will fall on your head ?>0 ^1 |/ i9 C' j
5 N5 M$ J, I" n2 \8 X7 v, ~
</div> # z9 V8 j. G8 P& ?* U) E9 ?/ u
! x6 h! m: Y' D, f5 K; a) e
) K* h" B. W2 b |