• Resolved lauriel

    (@lauriel)


    I would like to insert an image in the place of the white background of my front page. I am using a childtheme and also, I have imported into that theme, the front page php, and page templates php, thinking I might have to modify something in there. I have changed all the page colours using a .site class, but I just want the front page altered.
    the page id is 276, the slug name is welcome. the site is https://www.laurielippe.com
    Thankyou!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try using:

    .home #page {
       CSS here;
    }

    Including the home class restricts the CSS to just that page.

    Thread Starter lauriel

    (@lauriel)

    yes, this works! Thankyou so much But I don’t understand why. Where in the php is the class called home? how could I have missed?
    thanks again.

    Where in the php is the class called home?

    .home is one of the page specific outputs of the function body_class() which is used within the body tag of the theme in header.php; https://codex.www.ads-software.com/Function_Reference/body_class

    Thread Starter lauriel

    (@lauriel)

    Ahh – many thanks, It is fun – even though frustrating at times – to dive into the shallows of all of this. It reminds me of formal and symbolic logic which I was never all that good at. (but will keep on).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Static front page ONLY. Changing the background 2012.’ is closed to new replies.