• Resolved lafon10

    (@lafon10)


    Hi everyone,

    I’m very new at this so please be kind… ??

    In trying to figure out how to remove the “Leave a Reply” box from my posts, I found a video (https://www.youtube.com/watch?v=WOeGYKH3Amg) indicating to remove some code from the single.php template. Since my code was different, I attempted to remove the whole thing in order to see what effect it would have. It ended up doubling the content on all the pages of my site. The problem is, even when I put the code back, the content is still doubled… here is the code that I had:

    <?php get_template_part(‘templates/content’, ‘single’); ?>

    Any idea what the issue may be?

    I appreciate your help with this… not going to lie, panicking a little!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,
    So I suggest just removing the theme and reinstalling. That will clear any changes you made and fix the content.

    Then if you would like to turn off comments you can do that in your settings in wordpress and also in each post. See here: https://www.wpbeginner.com/plugins/how-to-turn-off-or-disable-comments-in-wordpress-pages/

    Kadence Themes

    Hey! Have you setup a child theme already? I would recommend going back and undoing your changes if at all possible and setting one up before you continue changing your php files.

    It could be a caching issue that is causing the changes to not show up immediately. Try clearing it and seeing what happens.

    And as for disabling comments on all of your posts, the easiest way to go about that is to go to

    Posts >All Posts >Select All Posts >Click the dropdown and select EDIT >Apply

    There you will see an options page, and under “Author,” you’ll see “Comments.”
    Click that dropdown, and select “Do Not Allow.”

    All of your comments will be disabled for those posts. Keep in mind though, you will have to disable them for every future posts.

    Hope that helps!

    Thread Starter lafon10

    (@lafon10)

    Thanks for your help!

    I’ve done as suggested and everything is back to normal.

    Once again, much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content Doubled’ is closed to new replies.