Viewing 1 replies (of 1 total)
  • The first thing you want to do is make sure you’re using a child theme. Then with your child theme installed and activated, copy the page.php file from Patchwork into the root of your child theme.

    In that new file, find:

    <?php comments_template( '', true ); ?>

    Replace it with:

    <?php ! is_front_page() ? comments_template( '', true ) : ''; ?>

    That will make sure any WordPress Page you decide to set as the home page will not have comments, but the rest of the Pages will continue to.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing comment section on static home page’ is closed to new replies.