Blog

July 15, 2009

How to Remove Comments from Homepage of Thesis Theme?


Customizing Thesis WordPress theme is not an easy thing to do. It requires special coding skills as it is quite different from other WordPress themes.

There are some default features in Thesis theme which are not much useful for blogs. Many Thesis users don’t like the no. of comments “{comments}” feature on their blog’s homepage. This irritating feature can easily be removed with the help of following two methods.

Remove Comments from Homepage of Thesis Theme

Method 1: (Open hook)

  1. Install “Thesis OpenHook” WordPress plugin on your blog.
  2. Open the “Appearance” tab and select “Thesis OpenHook”.
  3. Select thesis_hook_after_post and check “Remove Thesis comments link” as shown in figure below.
  4. Click on save button.

Open Hook After Post

Method 2: (custom_functions.php)

1. Open custom_functions.php file from Thesis theme folder.

2. Add this code in the file -

remove_action(‘thesis_hook_after_post’, ‘thesis_comments_link‘);

3. Save the file.

Now you can check your blog’s homepage to see the change.

Check out some cool Thesis theme customizations.

Also read:

How to add Twitter Field in the Comment Section of Thesis Theme?

How to add your own Logo in Thesis Theme?







38 Comments


  1. Term Paper Writing

    i am also using Thesis theme on my tech blog and this is a useful post. any more such suggestions to make this theme and blog more better ??? for visitor and seo purpose.


    • Well, it depends on what you write on your blog. Content is more important than any other thing. Thesis is completely customized theme, you don’t have to do anything else for SEO.

      I will write some articles in upcoming days to make it more unique and different. :)


  2. Term Paper Writing

    i am also using Thesis theme on my tech blog and this is a useful post. any more such suggestions to make this theme and blog more better ??? for visitor and seo purpose.


    • Well, it depends on what you write on your blog. Content is more important than any other thing. Thesis is completely customized theme, you don't have to do anything else for SEO.

      I will write some articles in upcoming days to make it more unique and different. :)


  3. Thesis are truly highly customizable without having to change its source code. I’m looking forward to see more of this posts from you, since I’m still new to Thesis.


  4. Thesis are truly highly customizable without having to change its source code. I'm looking forward to see more of this posts from you, since I'm still new to Thesis.


  5. Kindly tell me how to remove “click here to continue” or “read more” link from the thesis homepage, i don like it. I want readers to click title of the post to read it completely instead of reading the complete post by clicking “click to continue” link. I hope you got the point.


    • Hey Bilal,

      Just change the no. of featured post and select “Display full post content” option in Thesis Options. It’ll remove the “Click to continue” link from the homepage of your Thesis theme.


  6. Also please tell me how to reply to a specific comment in thesis, my thesis theme dont have got the option of reply to a comment, also it dont have option of “Notify me of followup comments via e-mail”, need help…


    • 1. I think you haven’t upgraded Thesis to newer version 1.5.1. Upgrade your theme and enable the threaded comments feature in your blog.

      2. “Notify me of followup comments via e-mail” is not a default feature in Thesis theme, you’ll have to use “Subscribe To Comments” WordPress plugin.


  7. Kindly tell me how to remove "click here to continue" or "read more" link from the thesis homepage, i don like it. I want readers to click title of the post to read it completely instead of reading the complete post by clicking "click to continue" link. I hope you got the point.


    • Hey Bilal,

      Just change the no. of featured post and select "Display full post content" option in Thesis Options. It'll remove the "Click to continue" link from the homepage of your Thesis theme.


  8. Also please tell me how to reply to a specific comment in thesis, my thesis theme dont have got the option of reply to a comment, also it dont have option of "Notify me of followup comments via e-mail", need help…


    • 1. I think you haven't upgraded Thesis to newer version 1.5.1. Upgrade your theme and enable the threaded comments feature in your blog.

      2. “Notify me of followup comments via e-mail” is not a default feature in Thesis theme, you'll have to use "Subscribe To Comments" WordPress plugin.


  9. Hi,

    i added remove_action(’thesis_hook_after_post’, ‘thesis_comments_link’); in the custom_functions page.
    Now when i select a ‘nieuwsbrief in the the rss feed for example ‘nieuwsbrief 1′ i still get a comment box beneath. How can i delete that?

    here is the site: http://www.mikevsnet.be/?page_id=3

    thx


    • It’ll not remove comment box from your blog. It just removes no. of comments displayed on home page.
      However, you can remove entire comments section by deleting comments.php file.


  10. Thx Harshad ! It’s very clear now!


  11. Hi,

    i added remove_action(’thesis_hook_after_post’, ‘thesis_comments_link’); in the custom_functions page.

    Now when i select a 'nieuwsbrief in the the rss feed for example 'nieuwsbrief 1' i still get a comment box beneath. How can i delete that?

    here is the site: http://www.mikevsnet.be/?page_id=3

    thx


    • It'll not remove comment box from your blog. It just removes no. of comments displayed on home page.
      However, you can remove entire comments section by deleting comments.php file.


  12. Thx Harshad ! It's very clear now!


  13. For me having comment link on index is not a good scenery because the appearance doesn’t blend with my customized Thesis, was planning to remove it in the future but fortunately landed to this page while searching tricks & tips for Thesis theme that I just installed to my blog 2 days a go , I didn’t think twice but immediately follow your trick, I really didn’t expect the solution could be this easy. Thanks buddy!


  14. For me having comment link on index is not a good scenery because the appearance doesn't blend with my customized Thesis, was planning to remove it in the future but fortunately landed to this page while searching tricks & tips for Thesis theme that I just installed to my blog 2 days a go , I didn't think twice but immediately follow your trick, I really didn't expect the solution could be this easy. Thanks buddy!


  15. Thanks for the info dude.. ..


  16. Code Hunter - Web Hosting Coup

    Thanks for the tips.. I working on my thesis theme customization..


  17. Code Hunter - Web Hosting Coupons

    Thanks for the tips.. I working on my thesis theme customization..


  18. If people copy and paste the hook as you have it, it may not work because of smart quotes.

    Replacing the “smart” apostrophes you have with straight apostrophes may help some.


  19. Anonymous

    Thanks alot for sharing this. Thesis can be a bit overwhelming even for a developer who’s just starting working with the theme.

    I appreciate it.


  20. Thanks man you saved me a lot of time trying to figure this out. Love the plug-in suggestion it makes things easier!


  21. I want people to be able to comment on the home page — but I do not want the number of comments to show. Can this be done — since the code I pasted in has removed BOTH the comment box AND the # of comments from the home page? Readers won’t necessarily know to click on the post’s subject to get the comment box to show.

    Please advise.

    Thanks for reading


    • Use this code in your index.php –

      Comment Box

      By the way, I won’t recommend you to show comment box on the front page. It will unnecessarily increase the load time of your blog or website.



Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>