How to Remove Title from Homepage

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. Install and Activate the WP Editor plugin: https://wordpress.org/plugins/wp-editor/

It is a very useful plugin which allows you to edit files inside all of the theme folders:

WP Editor Plugin

 

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

 

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

 

4. 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; ?>

 

5. 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; ?>

 

6. Save Changes

 

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

 

About the Author

Tihomir Ivanov is a WordPress web developer, founder of tishonator.com, a fan of Linux and Open Source, a gym enthusiast, a vegan, a fan of minimalism, good movies and books :)

Leave a Reply