Forums

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?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31122
    cre8tive1
    Member

    Hi all,

    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.

    Any suggestions?

    Here is the site: http://snorkel.jerryrossphotography.com

    >










    image


    image


    image



    image


    image


    image




    #66760
    cre8tive1
    Member

    SOLVED using get_post_meta function.

    #86169

    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?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.