contacts

Get All 146 Premium WordPress Themes for Just $59.99
One-Time Payment: Unlimited Use Across Unlimited Domains, Plus Free Lifetime Updates! Learn more

How to Remove Title from Homepage

How to Remove Title from Homepage

When you have a static front page, you may want simply to remove page title and remain displaying of the content. In case you want to apply such change, here are all of the necessary steps:

1. Navigate to Admin Panel -> Left Menu -> Appearance -> Theme Editor

 

2. Open content.php (for Premium themes, it’s into theme root folder)

 

3. Find the following code:

<?php if ( !is_single() ) :

echo ‘<h1 class=”entry-title”><a href=”‘ . esc_url( get_permalink() ) . ‘” rel=”bookmark” title=”‘.get_the_title().'”>’.get_the_title().'</a></h1>’;

endif; ?>

 

4. Then add the following code (marked in BOLD):

<?php if ( !is_single() && !is_front_page() ) :

echo ‘<h1 class=”entry-title”><a href=”‘ . esc_url( get_permalink() ) . ‘” rel=”bookmark” title=”‘.get_the_title().'”>’.get_the_title().'</a></h1>’;

endif; ?>

 

5. Save Changes

 

That’s all. Applying of the above change will hide the Static Front Page title from your homepage.