Site logo

Archived topic

Bizarre - Comments Box on Every Page!

9 replies · Started by Antar on August 17, 2017

Viewing posts 1–10 of 10

Hello, All -

I've never encountered this before, but as the title says, a comment box has mysteriously appeared on every page on the site. Before you ask, comments are disabled site-wide. I've even tried using a small script in the functions.php to get rid - but event that doesn't work!

The only thing I've been able to do is create a new (alternative) page template from which I have removed the following code:

<?php
  // If comments are open or we have at least one comment, load up the comment template
    if ( comments_open() || '0' != get_comments_number() ) : ?>
      <div class="comments-area">
        <?php comments_template(); ?>
      </div>
<?php endif; ?>

I have no idea what is activating this code when all the settings are switched off?!

:0(

Antar

Hi there,

Can you provide a link to your page in question? Thanks!

Hi, Leo -

Thanks for the help. Can I PM you?

Antar

OK. Done.

For the record, I have a few commercial plugins installed including:

Elementor
GP Extender
MailPoet
and several of the more popular tools from WPMUDev

I've tried deactivating several of them but nothing seems to work!

Antar

Just making sure you are referring to the Leave A Comment area at the bottom of the page?

The settings in Settings > Discussion only applies to new posts.

For existing posts, you need to go to Dashboard > Posts > Hover the title > Quick Edit then uncheck allow comment.

Let me know if this helps.

None of the existing posts have "Allow Comments" activated.

Hi Leo -

Thanks for this. It still seems bizarre. Presumably this setting is not "on" by default?

It is On by default.

You can turn it off in Settings > Discussion but that will only apply to new posts, not existing posts.

This archived topic is closed to new replies.