• Resolved myov

    (@myov)


    Hi there,

    Bit new to wordpress still.

    Just wondering how I can turn comments off on certain pages? For instance my About and Privacy Policy pages I don’t really want the comments box to appear.

    I have googled and a lot of threads said to edit my page.php file, but my template does not use one – and again I don’t want comments to be hidden on all pages, just some.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • Untick “Allow comments” on Edit Page for your About and Privacy Policy pages. If you don’t see this box, click on Screen Options on Edit Page and ensure that the Discussion box is ticked.

    Thread Starter myov

    (@myov)

    Amazing, I was just reading this link which said the option should be there, I was wondering why I couldn’t see it!

    Thank you so much, and so quick! Much appreciated.

    No problem ??

    Thread Starter myov

    (@myov)

    Oops.. I spoke to soon. It would seem that although i get ‘no comments’, the comments box still appears below that. It must be my theme – but its using Warp so i can’t tell what bloody part to edit! lol

    The code will be in page.php. Probably something like <?php comments_template( '', true ); ?>. You could create a custom no-comments page template that simply had that line removed from it. Then all you’d need to do is apply the new template to any Page where you didn’t want comments.

    Thread Starter myov

    (@myov)

    Finally found page.php inside the warp folder/architecture.

    Simply replacing
    <?php comments_template(); ?>
    with
    <?php if ( comments_open() && $lw_disable_comments == "false" ) : comments_template(); endif; ?>
    did the trick!

    Thanks so much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Turn comments off on certain pages?’ is closed to new replies.