Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi ChelseaCat,

    1)For remove the post comment section on each page you should apply below changes in your current theme page.php file:

    <?php //comments_template(); ?>

    2)Also you can apply changes for setting section.

    Please follow below steps:

    1) Go to Settings -> Discussion,

    Enable check box Users must be registered and logged in to comment.

    2) Go to Settings -> General,

    Make sure that Membership > Anyone can register check box is not checked.

    Thread Starter ChelseaCat

    (@chelseacat)

    Hi Multidots:

    Thanks so much for your response! I’ve followed your advice and made the changes for Settings->Discussion and Settings -> General. However, I’m not sure where to enter the line of code. I tried adding the instruction at the top of the page template (page.php) file but it was apparently not the right spot.

    Here is the body of that page. Can you tell me where to add the line?

    <?php get_header();	?>
    
    <?php get_template_part( 'loop-meta' ); ?>
    
    <div class="container_16 clearfix">
    
      <div class="grid_10">
        <div id="content">	  
    
    	  <?php if ( have_posts() ) : ?>
    
            <?php while ( have_posts() ) : the_post(); ?>
    
              <?php get_template_part( 'content', 'page' ); ?>
    
            <?php endwhile; ?>
    
          <?php else : ?>
    
            <?php get_template_part( 'loop-error' ); ?>
    
          <?php endif; ?>
    
          <?php get_template_part( 'loop-nav' ); ?>
    
        </div> <!-- end #content -->
      </div> <!-- end .grid_10 -->
    
      <?php get_sidebar(); ?>
    
    </div> <!-- end .container_16 -->
    
    <?php get_footer(); ?>

    Thank you so much for your help!!!

    Here’s a link to the site: Robert’s Total Care Salon. It’s still at a very preliminary stage.

    Hi ChelseaCat,

    If you want to remove your comment section, please find this line <?php comments_template(); ?> on your active theme and make it to <?php //comments_template(); ?>

    just it. Enjoy..!!

    Thread Starter ChelseaCat

    (@chelseacat)

    Hi Multidots:

    I searched through every php file for that line and wasn’t able to find it. However, there was a page called comments.php. I removed all of the lines of code and that got rid of the post comment section from each page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove the Post Comment Section’ is closed to new replies.