Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have set up a static home page. I would like the title, Home, to show on the menu, but not on the page. Can you tell me how to accomplish this? Thank you.

share|improve this question

3 Answers 3

A possible quick fix is to duplicate your page.php or index.php template file, rename it front-page.php, then open it and delete the_title(); and any html tags around it, like <h1> </h1> or whatever the title is wrapped in.

share|improve this answer

An alternate approach to Milo's suggestion is to modify page.php to wrap the_title() in a conditional. e.g. replace this:

<h1><?php the_title(); ?></h1>

...with this:

<?php if ( ! is_front_page() ) { ?>

    <h1><?php the_title(); ?></h1>

<?php } ?>
share|improve this answer

Both Chip & Milo's answers would work, or, if you have body_classes enabled (so that unique classes are added to each page's body class) you could just add this to your CSS:

.home h1 { display: none; }

Depending on the theme that h1 will have a unique style applied to it as well, like:

.home h1.page-title {display: none; } 

which would be even better, as then you wouldn't accidentally hide any other tags on that page.

G'luck.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.