Forums

Remove Page Title from Static Front Page (6 posts)

  1. AmeerahL
    Member
    Posted 6 months ago #

    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/

  2. JerrySarcastic
    Member
    Posted 6 months ago #

    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.

  3. paulruescher
    Member
    Posted 6 months ago #

    <?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

  4. AmeerahL
    Member
    Posted 6 months ago #

    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?

  5. JerrySarcastic
    Member
    Posted 6 months ago #

    Did you try putting it in functions.php?

  6. AmeerahL
    Member
    Posted 6 months ago #

    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!

Reply

You must log in to post.

About this Topic