If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #3783


    I would like to change the body background color only on the homepage (the one with the image slider). How can I do this?

    I have found the relevant lines in style1.css:




    …but if I change the color definition here, the change applies also to all other pages and I would like it to affect the homepage only. Is there a way to do it?



    Method 1: On the homepage itself, find the body tag in the code and add a manual style in there.


    <body style=”background-color: #000000″>

    Method 2: Add a new style to the stylesheet, e.g. .body-home{background-color: #000000}

    Then apply the new class to the body tag on the homepage itself:


    <body class=”body-home”>



    There is no “homepage itself” – it is generated by WordPress automatically and I don’t know which PHP file to modify.



    use following css code (add it to style.css):

    background: #fff;

    Change the color as you like.




    Glad that I could help you :)

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

The topic ‘How do I change background color for the homepage only?’ is closed to new replies.