How to change Content-Color on only the homepage?

Solved
Zach_Garbutt
Tourist
3 0 3

Hello i managed to set the theme to a white for all page backgrounds and content backgrounds just using the customize theme tool.

But i want to change the homepage "page background" and "content background" to a black and text to a white leaving every other page "page background" and "content background" white

I managed to change the homepage "page background" to black using this code in theme.scss.liquid

.template-index .page-container {
background-color: #0B0A0A;
}

But the "content backgrounds" are still white and the text still black.

How am i able to change the "Content backgrounds" and text color of the homepage only?

 

Cheers!

Zach

dmwwebartisan
Shopify Partner
6508 1512 1982

@Zach_Garbutt 

Please share your website URL and password if any. I will check and provide a solution here.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes
Zach_Garbutt
Tourist
3 0 3

Hey its not my site, i'm a partner and have access to it!

 

and the site currently isn't live but here is a link to the preview!

 

https://lid74qs50kvmu94u-24644452451.shopifypreview.com

dmwwebartisan
Shopify Partner
6508 1512 1982

This is an accepted solution.

@Zach_Garbutt 

Please add this code at the bottom of your assets/theme.scss.liquid file.

.template-index .section-block{
background-color: #000 !important;
color: #fff;
}
.template-index .featured-card{
background-color: #000 !important;
color: #fff;
border: 1px solid #fff !important;
}

Hope this works.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
Zach_Garbutt
Tourist
3 0 3

Thank you so much,

That worked like a treat! 

Super quick too, couldn't be more happy!