Title: Remove title Template?
Last modified: September 1, 2016

---

# Remove title Template?

 *  [tanckom](https://wordpress.org/support/users/tanckom/)
 * (@tanckom)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/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.

 * 0 replies
 * 1 participant
 * Last reply from: [tanckom](https://wordpress.org/support/users/tanckom/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/remove-title-template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
