Sylvain Borgarino
asked 5 years ago
Sylvain Borgarino
replied 5 years ago

Or, is it possible to add a cover image in the flat style, so I could change both the homepage background and the post background separetly ?Thanks !!

3 Answers
DominicStaff
answered 5 years ago

To change the background color for the home page, without changing post bg color, you can add the following code to the style.css file:

.style-flat .wrap {
    background: #000 !important;
}

.single .wrap {
    background: #fff !important;
}

Hope this helps !

Sylvain Borgarino
replied 5 years ago

It doesn’t work completly, only the post bg changes.But it does when I add the following lines, without the “.style-flat”.wrap { background-color: #a8b1ba !important;}.single .wrap { background: #f8f8f8 !important;}Do you think the code is OK like this?Thanks again for your help Dominic !;)

Dominic Staff
replied 5 years ago

Please send me your site for further checking.

Dominic Staff
replied 5 years ago

I have checked on our demo with your css code, please use another color code (#f8f8f8). This color code (#f8f8f8) still is white color.

Sylvain Borgarino
replied 5 years ago

my site: http://www.lescampette.fr #f8f8f8 looks light grey to me (if I change it fo #fff with my viewer -firebug – it changes the color a little bit).

Dominic Staff
replied 5 years ago

I have checked your site and I saw your site working fine now.

Sylvain Borgarino
answered 5 years ago

Hello again Dominic!

 

I just figure that the “Page” background changed with the homepage color background.

How can I change it separetly?

 

Thank you!

 

http://www.lescampette.fr

Sylvain Borgarino
answered 5 years ago

I think I found! I tried the following line, it seems to work:

.page .wrap {
background: #f8f8f8 !important;
}

You agree with this code?

 

😉

Powered by DW Question & Answer Pro