Thesis Theme Tutorial: Move Comments Link from Below the Post to Byline

January 27, 2010 in Thesis Theme | View Comments

In this short Thesis theme tutorial I will show you how to remove comments link that is by default below the post and move it under the headline as I have done on my blog.

First, you will have to remove comment link below the post by inserting the following code to your custom_functions.php file.

remove_action('thesis_hook_after_post', 'thesis_comments_link');

Second, you’ll have to add the comment link to the byline by adding this code to custom_functions.php file.

function custom_byline() {
?>
| <a href="<?php comments_link(); ?>" class="url fn"><span class="url fn"><?php comments_number('Post a comment','1 Comment','% Comments'); ?></span></a>
<?
}
add_action('thesis_hook_byline_item','custom_byline');

And this is it. And remember – always make a backup before doing any changes, just in case.

If you enjoyed this article, you might also like:
  1. Thesis Theme Tutorial: How to Add a Second Navigation Menu
  2. How to: Add Tweetmeme Button to Byline
  3. How to Add Custom Banner Ad in Thesis Theme Header
  4. Clickable Header Image in Thesis Theme
  • thanks but is there a way to style it?
  • Wow. THANKS. that was pretty darn easy. I am going to have to fiddle with this. Thanks again for the tip!
  • I might use this on my limousine blog because the comments link is so visible and we don't really like getting comments there, just too tough to manage, however we don't always want comments closed.
blog comments powered by Disqus

Previous post:

Next post: