different header image depending on which page you are on
-
Hi,
I want to have different header images for different pages on my WP site. Is the best way to do this to create an ‘if’ statement that checks what the page title is?
So for example:
if (is_page('About Us')) { //load the 'about us' image } elseis(is_page('Contact Us') { //load the 'contact us' image }
etc…
Or is there a better way to do this?
Thanks!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘different header image depending on which page you are on’ is closed to new replies.