• I need to remove the Title “Home” from my static front page without removing the Titles from my other pages.

    I have tried commenting it out in the page.php file, but it removed all titles from all pages.I also tried pasting this into the page html itself with no results:
    <style>
    h2.pagetitle
    {
    display: none !important;
    }
    </style>
    here is the page
    http://www.lifechangerschurchintl.org/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try this:

    #post-135 h2{display: none;}

    Another solution is to create a page called “Welcome to Life Changers Church!” and set that as your home page, and then create a Custom Menu, and change the label of that page to “Home” so it displays the way you want in main navigation.

    <?php if(!is_home() || is_front_page()) { ?>
    	<h2><?php the_title(); ?></h2>
    <?php } ?>

    Would be better. That way if you change your homepage, you won’t have to go and manually change the display: none; declaration

    Thread Starter ameerahl

    (@ameerahl)

    I added the code

    <?php if(!is_home() || is_front_page()) { ?>
    	<h2><?php the_title(); ?></h2>
    <?php } ?>

    into my page.php file in place of the other <h2> code. But, nothing changed on any of the pages. Did I put it in the wrong page/place?

    Did you try putting it in functions.php?

    Thread Starter ameerahl

    (@ameerahl)

    Oh, no I didn’t try that. To save time and frustration (I”ve been trying to do this for 2 days) I decided to just take the page title’s out all together and just add them in manually for the pages I wanted them on. Thanks for your help though!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove Page Title from Static Front Page’ is closed to new replies.