• Resolved Tessila

    (@tessila)


    How can I change the background image of only the page in the link below and any pages linked to it?

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

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

    (@hannahritner)

    Hey,
    You can do that with this css:

    body.page-id-7959 {
        background-image: url(yoururl);
    }

    Just add in your iamge url.
    Hope it helps!

    Hannah

    Thread Starter Tessila

    (@tessila)

    It doesn’t seem to work, even after waiting a while. Is this how I am supposed to place the image URL?

    body.page-id-7959 {
        background-image: urlhttps://www.tnmartistry.com/wp-content/uploads/2019/05/Background-1.jpg;
    }
    hannah

    (@hannahritner)

    Try this:

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

    Does that work for you?

    Hannah

    Thread Starter Tessila

    (@tessila)

    Hmm. Still doesn’t seem to do anything different.

    Thread Starter Tessila

    (@tessila)

    Now it finally changed after a while. Is it possible to make it fit the whole page? Also, is there way to place that image as the background to the pages linked on that page as well?

    I really appreciate your help, by the way!

    hannah

    (@hannahritner)

    To make the whole image show you need to upload a larger image. Something more like 2000px x 2000px.
    This css should work for that page and its child pages:

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

    Hannah

    Thread Starter Tessila

    (@tessila)

    That worked great, after all the quirks will be worked out. Thank you so much! The only thing is that the child page to the child pages doesn’t seem to change its background. Is there a way to fix that as well? Sorry if I’m asking too much!

    hannah

    (@hannahritner)

    Can you link to an example?

    Hannah

    Thread Starter Tessila

    (@tessila)

    In this link where it says “Click here to order photos”, the link attached to the word “here” doesn’t have the same background of the mules as I would prefer it to have. Does that make sense?

    hannah

    (@hannahritner)

    Because that page is not a child page you would just have to use a separate id for it. You can change your css to 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.jpg");
    }

    Hannah

    Thread Starter Tessila

    (@tessila)

    Awesome. That worked great. Thank you so much! I feel bad to have to ask for someone to make a custom CSS rather than making one myself.
    Again, thank you for all your help!

    hannah

    (@hannahritner)

    Happy to help!

    Hannah

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

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