[Resolved] Remove Comment section from Artic Site

Home Forums Support [Resolved] Remove Comment section from Artic Site

Home Forums Support Remove Comment section from Artic Site

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2341533
    William

    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?

    https://imgur.com/a/ZDeEz5E

    Thank you.

    #2341554
    David
    Staff
    Customer Support
    #2341556
    William

    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?

    https://imgur.com/a/qrbFpfS

    I am asking because it seems to be affecting mobile site speed based on Google’s site speed test.

    #2341598
    David
    Staff
    Customer Support

    That form only appears if comments are enabled. By disabling the comments that from should be removed.
    Is that not happening ?

    #2341605
    William

    David that seems to be the case unless I am missing something.

    Here is the backend:

    https://imgur.com/a/ygymATd

    Here is a link where you can still add a comment:

    https://steelandonyx.com/how-to-build-quality-wordpress-themes/

    Thank you.

    #2341649
    David
    Staff
    Customer Support

    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 🙂

    #2342666
    William

    Thank you, David.

    #2342710
    David
    Staff
    Customer Support

    You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.