Call: (209) 560-6611

Remove title from home page in WordPress theme twentytwelve

Date: May 12, 2014 Author: ang Category: Tutorials WordPress Tags: , Comments: 0
In this tutorial, I will show you how to remove the page title from the home page of the free WordPress theme 'Twentytwelve'. You will need to have a self hosted WordPress website and an ftp program to complete this tutorial. 

Remove the page title from the homepage in the WordPress theme twentytwelve

  1. Use an FTP program to connect to your self hosted WordPress website. 
  2. Navigate to 'wp-content'>'themes'>'twentytwelve'>'content-page.php'.
  3. Around line 16, replace the code:
     PHP |  copy code |? 
    1
    <h1 class="entry-title"><?php the_title(); ?></h1>

    with
     PHP |  copy code |? 
    1
    <?php if(is_page('Home')){}else{?><h1 class="entry-title"><?php the_title(); ?></h1><?php }?>
  4. Save and replace old file with your modified version.

Note: Ideally you should set up a child theme to make theme modifications. If you don't create a child theme, a WordPress theme update will erase your modifications.

Leave a Reply

Your email address will not be published. Required fields are marked *

Before you post, please prove you are sentient.

What is 6 times 6?

Before you post, please prove you are sentient.

What is 6 * 3?