方法如下:
编辑Grace主题下的single.php文件,并将53-61行中的if判断1改为0,保存上传,刷新wordpress网站界面。
以下为修改后的效果:
<?php if( $dis_cat == 0 ) { ?>
<span class="postcat"><i class=" icon-list-2"></i> <?php $category = get_the_category();if($category[0]){echo '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>';}?></span>
<?php } if( $dis_time == 0 ) { ?>
<span class="postclock"><i class="icon-clock-1"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ); ?></span>
<?php } if( $dis_view == 0 ) { ?>
<span class="posteye"><i class="icon-eye-4"></i> <?php post_views('',''); ?></span>
<?php } if(suxingme('suxingme_post_comment',true) && comments_open(get_the_ID()) ) { ?>
<span class="postcomment"><i class="icon-comment-4"></i> <a href="<?php the_permalink(); ?>" title="评论"><?php comments_popup_link( __( '0' ) , __( '1'), __( '%') ); ?></a></span>
<?php } if( $dis_like == 0 ) { ?><span class="postlike"><i class="icon-heart"></i> <?php if( get_post_meta($post->ID,'suxing_ding',true) ){ echo get_post_meta($post->ID,'suxing_ding',true); } else {echo '0';}?></span><?php } ?>
<?php edit_post_link('[编辑]'); ?>