wawylysys 發表於 2013-8-6 21:20 ! U; h& ^/ O+ q2 ^( L8 e$ @
在wp後台找到外觀——編輯,然後看右面那些php文件% t6 G8 [: m6 z9 s" C+ c! K8 x
找到comments.php,然後搜索你要去掉的字符,找到的話相 ...
- n& `: F" K% ?8 Q4 \嗯,在comments.php找了半天也沒找到相應的,幫忙再給看一下要刪除哪一組代碼呢?<?php// Do not delete these lines
0 {9 j% L- J. e4 s2 \- @if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))' e5 k. U0 D: @
die (__('Please do not load this page directly. Thanks!', TEMPLATE_DOMAIN));* T: E# p* c' M
if ( post_password_required() ) { ?>
' M) Q5 Y7 W& |<p><?php _e('This post is password protected. Enter the password to view comments.', TEMPLATE_DOMAIN); ?></p>
1 l! w7 v$ l6 }2 J1 N1 I0 z( z0 y<?php
' o5 `2 Y/ @9 [1 o. G# ireturn;+ r& ~- ], o1 B% v3 _
}
$ r" [7 h! ~ l6 o$ r6 f3 Y- Z$cpage = get_query_var('cpage');
0 ]+ ]! k7 B* _1 c. B?>) E) _% C0 m3 C1 T. U+ _5 g, E+ w
4 p/ Q% M% s, @7 C7 C
<!-- You can start editing here. -->
+ C& |; L8 Y) K x<div class="commentpost" id="commentpost"># |* ~8 Y) ?1 Y5 P
) M& i O, p D& r4 n: }
<?php if ( have_comments() ) : ?>
$ l9 X( v) D' ^<?php if ( ! empty($comments_by_type['comment']) ) : ?>/ J4 W, c0 r# J
, }. \+ N% l/ F. Y<h4 id="comments"><span><?php comments_number(__('No Comments Yet', TEMPLATE_DOMAIN), __('1 Comment Already', TEMPLATE_DOMAIN), __('% Comments Already', TEMPLATE_DOMAIN)); ?></span></h4>8 q& b0 ?3 t! z0 d% z: D8 k: N& ?3 P
& t, c+ T5 S; {+ \& f<div id="post-navigator-single"> w6 ^- E9 g% F) b4 { ]5 [
<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>
6 T3 U7 E! m1 @- E& R+ ^</div>
$ ]# M* z' _- x) a- b- V/ O0 g" Y; b5 }! b3 ~3 M( ?6 ?
<?php do_action( 'bp_before_blog_comment_list' ) ?>9 C2 _9 d7 I+ F& D3 O. C' F" b
<ol class="commentlist">
# F5 g' W2 G0 @5 ~8 W& q<?php wp_list_comments('type=comment&callback=get_the_list_comments'); ?>
& X h* t, \3 L$ I</ol>3 y& [2 K5 m8 e4 Q! v
<?php do_action( 'bp_after_blog_comment_list' ) ?>
) v' \/ ~- c! C1 R$ m" a' q$ X" w4 E
<div id="post-navigator-single">7 ^( Z* G! U- I4 Q6 w, w
<div class="alignright"><?php if(function_exists('paginate_comments_links')) { paginate_comments_links(); } ?></div>
5 x3 J$ Q; B$ ?! J6 e+ V</div>) B( _% X1 E% Q( q) o: m; E
2 u3 }$ Q- b5 k
<?php endif; ?>3 h* ~- ?1 a0 d4 y' K
& n. c: {7 B: ^6 e4 ]4 @2 P8 Z<?php if($cpage == '1') : ?>
% g# W; K1 x$ F<?php if ( ! empty($comments_by_type['pings']) ) : ?>+ b8 _* ? }- x) N- X2 V. {
<h4><span><?php echo get_wp_comment_count('pings'); ?></span></h4>
7 i( X0 U. |+ R( l9 u I Y2 }<ol class="pinglist">
2 `% f0 I8 m7 D$ M<?php wp_list_comments('type=pings&callback=get_the_list_pings'); ?>2 e. l8 N# @( M# J( Q& g4 z- o
</ol>
# ], ~/ C( ^ m! J<?php endif; ?>
' k* z6 w( j1 c, g) A<?php endif; ?>
7 W+ d. B& p# S9 q6 C$ l8 B1 } X( Y# l
7 k7 t! p8 o9 j! n) g& B<?php else : // this is displayed if there are no comments so far ?>
: r- T1 P# J: f. i' X# M. r/ R$ R( y
3 W- V1 v$ F6 S( T<?php if ('open' != $post->comment_status) : ?>7 O6 E+ {& a1 k4 u" x
<!-- If comments are open, but there are no comments. -->
! T2 E# y4 Q0 Z% D<?php else : // comments are closed ?>
% Y& G8 W5 ] p7 k0 W% m<?php endif; ?>
5 [( u. R6 p: v s% f k0 t7 f) V5 s+ }
<?php endif; //check have_comments() ?>
' @ J; Q' x: m4 r" M2 h* Y( {. W
, ?5 G0 u! j- ]; H<?php if ('open' == $post->comment_status) : ?>
' m0 c5 v4 W& T" B' ~$ O<?php comment_form(); ?>! h6 b0 s! j. _. n* A
<?php endif; // if you delete this the sky will fall on your head ?># Q: U3 d1 H) y
% V5 v: p- h2 X, ^# o</div>
: Z6 S8 x( \8 }" w, z! K4 k1 H5 ~: e1 }7 \: \% @, w
" T# K7 u" n$ v4 `4 H5 p |