- This topic has 11 replies, 4 voices, and was last updated 1 year, 9 months ago by
Clayton.
-
AuthorPosts
-
August 3, 2014 at 12:53 pm #8857
Michelle
Hello!
Love the theme and it is working very well for our new site. One issue – how do I completely remove the “Leave a Comment” option/box from my static home page? I do not want comments.
I have tried unchecking all the boxes under Settings: Discussion but it is still showing! Help!
August 3, 2014 at 12:58 pm #8858Tom
Lead DeveloperLead DeveloperHi Michelle,
Turning off comments in Settings > Discussion will prevent comments from appear on all future created pages, but won’t remove the setting from previously created pages.
In order to do that, go to the Edit Page section of the page, and click “Screen Options” near the top right, and make sure “Discussion” is selected.
Now look near the bottom of the page for the “Discussion” metabox, and uncheck the options to show comments.
You can also go to your list of pages, and click “Quick Edit” to deselect the comments option.
Hope this helps 🙂
TomAugust 3, 2014 at 3:22 pm #8861Michelle
Thank you! That worked beautifully.
March 1, 2015 at 1:08 pm #81567Kevin
Is there another way to remove comments, I try that but I still showing the comment box on my post
March 1, 2015 at 11:43 pm #81763Tom
Lead DeveloperLead DeveloperHave you taken a look at this page?: http://generatepress.com/knowledgebase/removing-comments/
Let me know 🙂
March 7, 2018 at 1:11 pm #514194Simon
Or if you are upgrading from an existing theme to GP – then I would recommend “Disable Comments” plugin, a much faster way to do it if many pages and posts. https://en-au.wordpress.org/plugins/disable-comments/
May 15, 2021 at 11:48 pm #1782328Frank
I see that we can uncheck comments in the metabox. Also that we can use the disable comments plugin.
Do either of these prevent new pages or posts from creating comment boxes in the future? I.e. I don’t want any new pages or posts to display a comments section.
May 16, 2021 at 9:05 am #1783036David
StaffCustomer SupportIf you follow the doc Tom provided here:
https://generatepress.com/forums/topic/removing-comments-completely/#post-81763Then that will disable comments for any future posts / pages that you create.
May 16, 2021 at 5:30 pm #1783483Frank
Thanks!
May 17, 2021 at 3:39 am #1784091David
StaffCustomer SupportYou’re welcome
July 14, 2021 at 10:44 pm #1856252Gregor
If you want to remove the comments section in template and thus completely remove comments for all future and past comments, you can also remove this action:
remove_action( 'generate_after_do_template_part', 'generate_do_comments_template', 15);
However, this will only work once the theme is set up so you should hook it to after_setup_theme.
add_action('after_setup_theme', function(){ remove_action( 'generate_after_do_template_part', 'generate_do_comments_template', 15); });
February 14, 2022 at 6:19 pm #2118806Clayton
Thanks Gregor! This is what I needed since I’m still using comments (within a GenerateBlocks content template) but needed to unhook completely the comments section at a template level. I appreciate it!
-
AuthorPosts
- You must be logged in to reply to this topic.