• Resolved KatyP

    (@katyp)


    1. I want to completely remove the comment box. I was able to do this a couple of years ago on another one of my sites, which also runs MH Magazine Lite, by going to content-page.php and removing

    <?php comments_template(); ?>

    Now, however, it seems that that line of code is no longer located on content-page.php. I’ve looked through all the source files but still can’t find it. Could you tell me where it is?

    2. Is there a line of code I can put in the Additional CSS box that will completely remove the comment box?

Viewing 1 replies (of 1 total)
  • Hi KatyP,

    thanks for using MH Magazine lite.

    1. You can find that line of code within the file single.php and page.php.

    2. Deleting that line of code will completely remove the comment section including comment box.

    However, keep in mind that you shouldn’t modify core theme files, but create a custom child theme instead if you want to apply code modifications. Otherwise your code changes will be lost after theme updates.

    As an alternative you could just disable comments in your WordPress dashboard under Settings => Discussion. However, this will only work for new posts. For old posts you can either use a plugin or bulk edit old posts to disable comments. Here you can find more information: How to disable comments in WordPress.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Comments Box’ is closed to new replies.