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.
Leave a Reply
You must be logged in to post a comment.
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.
You must be logged in to post a comment.
A possible quick fix is to duplicate your
page.php
orindex.php
template file, rename itfront-page.php
, then open it and deletethe_title();
and any html tags around it, like<h1>
</h1>
or whatever the title is wrapped in.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:
Depending on the theme that h1 will have a unique style applied to it as well, like:
which would be even better, as then you wouldn’t accidentally hide any other tags on that page.
G’luck.
An alternate approach to Milo’s suggestion is to modify
page.php
to wrapthe_title()
in a conditional. e.g. replace this:…with this: