• Hi,

    I have been using this theme and when we uncheck the “Allow comments” in pages, it should not allow comments box to show up. But that is not happening. Evening after unchecking the checkbox “Allow comments”, the comments box is showing up in the pages. Please help to resolve the issue.

    I checked the same in other themes and is working fine but not in this theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey there yourgoal,

    How are you doing today?

    I’m not representing theme authors neither I did test this but you can definitely try hiding those with CSS at least as a temporary solution in case this is a bug in the theme.

    If you want to do this please post link to your site and I’ll be happy to help ??

    Also do you want this removed only for your pages or for posts as well?

    Best regards,
    Bojan

    Hi Bojan,

    Thank you for your reply.

    I would like to remove the comments from the pages and not from the posts.

    Thanks a lot for extending your support.

    Click here to view my website

    Hey again ajay25,

    Sorry for the delay ??

    Please try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:

    https://www.ads-software.com/plugins/simple-custom-css

    .page article#comments {
        display: none;
    }

    This should hide the comment section only on your pages.

    Hope this helps ??

    Cheers,
    Bojan – WPMU DEV

    Hi,

    Thanks for the reply but it didn’t work.

    Hey again ajay25,

    Where exactly are you adding the code, I couldn’t see it when I was inspecting your site, did you by any chance remove it?

    If yes please add it back again, if no please advise on the above.

    Cheers,
    Bojan

    Hi,

    Thank you for your message. We detected the problem and we’ll fix it in the nearest theme update.

    If you don’t want to wait the update, you can add the necessary changes manually. To do this, please complete the following steps:

    1) Find “page.php” file in the folder with your theme and open it with any text editor (Sublime Text, for example);
    2) Find the lines 86-87 with the following content:

    } ?>
    </div><!-- travel-stories-single-posts -->

    3) Add the following code between these lines:

    <?php wp_reset_postdata(); ?>

    After changing, these lines (86-88) should look like

    } ?>
    <?php wp_reset_postdata(); ?>
    </div><!-- travel-stories-single-posts -->

    4) Save changes and check the result.

    Sincerely,
    BestWebSoft Support Team

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Comments don't get disabled’ is closed to new replies.