开发者

How to Remove author credits on posts on my wordpress site?

How do I remove the date added/admin/no comments sectio开发者_C百科n of each one of my posts in my wordpress blog here http://www.kvylfm.com


I'm not sure, but check in loop.php in your theme... There is a function called something like posted_on();... remove that and is done... there is a function for each thing, just find it, and remove it :)


The code that needs to be removed/commented out should be in your index.php/home.php, page.php and post.php but this can vary from theme to theme. Please post the loop from your page.php file and I can then update my answer with more specific directions.

UPDATE

This is pretty hard to figure out without having the theme's source code, but as an alternative, you can hide those elements. Open your style.css file and paste these two lines at the end of the file:

.post-date, .post-info { display: none; }
.post-content { clear: both; }

This should do the trick.


In your single.php and index.php files, remove this line:

<div class="post-info">Posted by <?php the_author() ?> on <?php the_time('F jS, Y') ?> | <?php comments_popup_link('0 comments', '1 comment', '% comments'); ?></div><div style="clear: both;"></div>

Hope that helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜