troubleshooting Question

How to omit a header on a WordPress page?

Avatar of Eric Bourland
Eric BourlandFlag for United States of America asked on
WordPress
21 Comments7 Solutions1095 ViewsLast Modified:
WordPress 3.8

I have a WordPress site, with a navigation menu, and WordPress displays the header on each web page just as it should: Home, About, Services, and so on.

On the Home page I would like to omit the Home header. Meaning, I want to omit

<h1>Home</h1>

on the home page.

Yet I still want menu item "Home" to appear in the navigation menu at the top of the page.

Can I insert an IF-THEN statement in header.php? (This is how I would do this task in ColdFusion, for example -- If "Home" page, Then omit "Home" header.)

Or is there a simpler way?

Thank you for your help.

Eric
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 7 Answers and 21 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 7 Answers and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros