Call: (209) 560-6611

Hide home page title in WordPress

Date: August 6, 2013 Author: ang Category: Tutorials WordPress Tags: , , Comments: 0

In this tutorial, I will show you how to hide the home page title on your WordPress website.

Hide the home page title in WordPress

  1. Log into your WordPress website.
  2. Click on 'Appearance'.
  3. Click on 'Editor'.
  4. Click on the link that represents page.php from the links on the right side of the screen. 
  5. Now you can see the php code for the php script that generates the pages for your WordPress website. Replace the code:
     PHP |  copy code |? 
    1
    <h1 class="title"><?php  the_title();  ?></h1>

    with
     PHP |  copy code |? 
    1
    <? if(is_home){}else{ ?><h1 class="title"><?php  the_title();  ?></h1><? } ?>
  6. Click the 'Update file' button.
Now the page title won't display on the home page. All other pages shouldn't be affected.

Note: If this script isn't working, try replacing the word 'is_home' with 'is_front_page()'.

Leave a Reply

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

Before you post, please prove you are sentient.

what is 4 plus 6?

Before you post, please prove you are sentient.

What is 8 * 5?