• Resolved Tessila

    (@tessila)


    I was helped by someone with placing a custom background on a couple certain pages a while ago, but now I removed one of the pages and re-created it to hopefully repair a problem I’d had on it. But now the original site background is behind the page. How can I place the custom background on the page again?
    The custom CSS I was given to create the custom background for the particular pages is this:

    body.page-id-8027, body.page-id-7959, body.parent-pageid-7959 {
        background-image: url(https://www.tnmartistry.com/wp-content/uploads/2019/05/Background-1-4.jpg);
    }

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • hannah

    (@hannahritner)

    Hey,
    You just need to change the page id. This should work for you:

    body.page-id-19162, body.page-id-19162, body.parent-pageid-19162 {
        background-image: url(https://www.tnmartistry.com/wp-content/uploads/2019/05/Background-1-4.jpg);
    }

    Hannah

    Thread Starter Tessila

    (@tessila)

    Awesome. Thank you so much, Hannah! I was hoping you’d be the one helping me out. Haha!

    hannah

    (@hannahritner)

    Happy to help:)

    Hannah

    Thread Starter Tessila

    (@tessila)

    Oops. I just saw the other three pages (this, this, and this) now don’t have the custom background now.

    • This reply was modified 6 years, 9 months ago by Tessila.
    hannah

    (@hannahritner)

    Oh sorry, change it to this:

    body.page-id-19162, body.page-id-7959, body.parent-pageid-7959 {
        background-image: url(https://www.tnmartistry.com/wp-content/uploads/2019/05/Background-1-4.jpg);
    }

    Does that work?

    Hannah

    Thread Starter Tessila

    (@tessila)

    Worked great. Thank you so much!

    hannah

    (@hannahritner)

    No problem!

    Hannah

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Different Background for Certain Page’ is closed to new replies.