kawstov

Remove ‘Comments’ section from a WordPress page

  Goto page.php. It will appear something like this: ——————————————————————————————get_header(); ?> <div id=”primary” class=”site-content”><div id=”content” role=”main”> <?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, ‘page’ ); ?><?php comments_template( ”, true ); ?><?php endwhile; // end of the loop. ?> </div><!– #content –></div><!– #primary –> <?php get_sidebar(); ?><?php get_footer(); ?> —————————————————————————————- Remove the line …

Remove ‘Comments’ section from a WordPress pageRead More »

Top