The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › How do I change a background image/page images based on the active page?
I’m working on a WP site and would like to load a different background image for each main navigation item. I also have 3 images in the masthead that I would like to be different based on the page.
I know that I can use php to run through an if/else statement, using the WP assigned “body_class” for these values but I can’t find any samples to start from.
Here is the site: http://snorkel.jerryrossphotography.com
SOLVED using get_post_meta function.
Hi, I’m trying to work out how to do this also….but I do not understand where I need to put the code to do this…how did you set up different images per page?