Archived topic
Remove Comment section from Artic Site
7 replies · Started by William on September 13, 2022
Hi team -
I did some searching but couldn't find anything here.
Is there a way to completely remove this "Post Comment" section from the pre-made Artic site?
Thank you.
Thank you, David. I am actually trying to remove the section altogether. Not just disable ability to comment. Is it possible to actually remove the following?
I am asking because it seems to be affecting mobile site speed based on Google's site speed test.
That form only appears if comments are enabled. By disabling the comments that from should be removed.
Is that not happening ?
David that seems to be the case unless I am missing something.
Here is the backend:
Here is a link where you can still add a comment:
https://steelandonyx.com/how-to-build-quality-wordpress-themes/
Thank you.
For existing posts, you may need to edit them and uncheck the comments options under discussion.
Or if you never want comments again Try this snippet:
add_action( 'wp', function() {
remove_action( 'generate_after_do_template_part', 'generate_do_comments_template', 15 );
} );
That will unhook the GP function that calls the comments_template() so that should do it :)
Thank you, David.
You're welcome