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:
