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/
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.
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
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?
Did you try putting it in functions.php?
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!