• I am trying to change the background of just one page in particular. I found this in a post that is closed here as a solution to my issue:

    change the body tag in your page.php file to this
    <body<?php if(is_page(‘about’)) echo ‘ class=”about”‘;?>>

    This will add class=”about” to the body tag only on the about page

    in your stylesheet add this
    body.about { background-color: #color-code; }

    However, when I do this, it only changes my background to a blinding white. No matter what color I stipulate, or leave the text black. It does this for all pages, not just the one defined by the code.

    Any help would be deeply appreciated. Here is the temp URL where the site is being hosted: http://www.testjustin.comze.com

    If anyone needs me to upload snippets of the different .PHP files I have, just let me know.

    Again, thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter beneads

    (@beneads)

    Just an update.

    I’m still trying without result. LOL. This is kicking my butt for sure.

    Any help, or insight would be deeply appreciated.

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Odd issue changing background for specific pages.’ is closed to new replies.