Change background for home page only

Viewing 6 posts - 1 through 6 (of 6 total)
  • #3592
    DavideG
    Participant

    Really new to css and php so I hope you guys can give me a hint.

    I’m looking how to add a background, fixed image to the home page only.
    Through the Appearance -> Background from WP I can do it for all site pages.

    I’m checking in the style.css but I can’t find if there’s a specific spot already or where, and how, I can add one.

    thanks

    #3656
    Daniel Tara
    Keymaster

    You can use the .home selector, however it appears also on secondary pages somake sure you also use the .paged selector. Example:

    .home {
    	background:url(...);
    }
    
    .paged{
    	background:#FFF;
    }
    #3702
    DavideG
    Participant

    Worked like a charm! Thank you sir.

    #3786
    lRlevolution
    Participant

    why wont it allow me to change the pages background color? the home page color code is working perfectly but when i use .paged code and try to use for example #d54e21 it wont work.

    #3790
    trails
    Participant

    Daniel, where abouts should I be making the change you mention above, I’ve tried to use the stltesheet but with out success.

    Cheers,
    Ian

    #3810
    Daniel Tara
    Keymaster

    Try adding a !important after the rule.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.