Remove title Template?
-
Hello,
I want to create a custom template, which is similar to my “Front Page” template, however WITH comments.
The “Front Page” template has disabled the title which removes the space between the post and the page. Looks more clear and user friendly in my opinion.
Code Front page:<?php /* Template Name: Front Page */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <div class="entry-content"> <?php while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> </div><!-- .entry-content --> </main><!-- #main --> </div><!-- #primary --> <?php get_footer(); ?>
However, after some research, when implementing the comments php command into this code, the spaces between post and header still exists!
Comments command:<?php if ( comments_open() || '0' != get_comments_number() ) : comments_template(); endif; ?>
How can i solve this? Don’t want to use a child theme or edit Css since it only applies to several pages (not all of them).
Thanks
- The topic ‘Remove title Template?’ is closed to new replies.