WordPress.org

Ready to get started?Download WordPress

Forums

Need to change background image for each page... please help (2 posts)

  1. mixmastermichael
    Member
    Posted 3 years ago #

    So, I'm currently using the 2010 theme on this site below. I have set the "main" div to have the background image used on every page, and then I was going to just swap out "main" to "main_about" "main_borders", etc and just change the background image to the right one on each page template.

    This all sounded good, but have recently discovered that the original "main" div spans on all pages in the header.php file.

    http://ski-to-live.com/wordpress/

    this page has a different template with main_about, but since the original "main" div from the header comes across it, it can't be seen.

    http://ski-to-live.com/wordpress/about-2

    How can I have it so that I can just change the background image for each of the pages?

    I think a possible solution would be to have seperate header.php files for the pages and then load them in with "main_about" instead of "main" but I can't seem to get it to work.

    Any help would be greatly appreciated.

    Thanks.
    Michael

  2. mixmastermichael
    Member
    Posted 3 years ago #

    Figured this out.

    In case some sorry soul stumbles on this same issue, this video helped me get on the right track, then just changed the .page-id-whateverpage #main background image url.

    http://www.youtube.com/watch?v=lULsxpkKIDs

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.