How do I change the header on one page only?
-
Howdy! This seemed like it would be easy, but I’ve tried a variety of code snippets from these forums without any luck.
My site is set up to display a static front page, with the blog portion appearing on /blog. I want the blog to have a different header, and I’ve been trying to accomplish this with PHP and the is_page function.
Here’s my latest non-working iteration:
<?php if(is_page('Blog')){ echo 'BLOG HEADER';} else{ echo 'MAIN HEADER';}?>
I’m no PHP expert (nor a WP expert!), so I don’t know how else to skin this cat. Thanks in advance for any help you can provide!
EDIT: Forgot to add that BLOG HEADER and MAIN HEADER are, of course, the location of the appropriate header images.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How do I change the header on one page only?’ is closed to new replies.