• Hi,

    I’ve been searching high and low for a solution to this. I have a few static pages where I have comments disabled. I have tweaked a template as I am still learning and plan to do a complete build when I am ready. Anyway, I have these pages that are not blog content but static content and it really bugs me that there is the little comments disabled button on the page.

    For instance – https://dollyculture.com/contact-dolly-culture

    How do I get rid of “comments are closed”?

    I have the WordPress book “WordPress Complete”
    by Hasin, Hayder (Author)

    and he has a page dedicated to it – but, the template I am using doesn’t have the same code.

    I would be very grateful for some information. Let me know if you need any more details about my page structures…

    Thanks in advance,

    Tiffany

Viewing 4 replies - 1 through 4 (of 4 total)
  • You don’t need any book for that, just read the Pages section in the Codex.
    You need to create your own Page template (see the link above) without having the call for the comments.php in it.
    For more, see the Template_Hierarchy to understand which template is used to display your content.

    And BTW, you are tweaking a theme – not a template: themes are made up of several template files!

    Thread Starter squeakymonkey

    (@squeakymonkey)

    woops sorry – I don’t know the lingo. Thanks for the response – I’ll look into it! ??

    Thread Starter squeakymonkey

    (@squeakymonkey)

    Yay! Thank you so much for pointing me in the right direction! It’s such a thrill when little things like this get figured out and do what you want them too!

    Tiffany

    Simple open up the wp-includes folder and look for a file called default-filters.php

    Open this file and scroll down until you see a line which looks like this

    add_filter(‘comment_text’, ‘make_clickable’, 9);

    Remove that line and re-upload this file and like magic the links in your comments are no longer active.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Remove Comment link on Static Pages?’ is closed to new replies.