How to Change Background Color only on Homepage on Parallax Out of the Sandbox theme.

How to Change Background Color only on Homepage on Parallax Out of the Sandbox theme.

Thomas_Basinger
Excursionist
13 0 4

Is there a way to change the background color of the home page only in the Parallax theme by Out of the Sandbox? I can find the background color setting in the theme customizer, but I'd like to change the color of the homepage only. 

 

I found this solution but our theme does not have a index.liquid file....

<style>
{% if template == 'index' %}
body {
background-color: #ededed; /* color hexcode */
}
{% endif %}
</style>

Replies 2 (2)
Thomas_Basinger
Excursionist
13 0 4

Thanks, this did not work when I tried to add it to the custom css theme settings or to our css file. I was able to find the .index-sections class and I just added the background color to this CSS and it did the trick.

namphan
Shopify Partner
2689 349 398

Hi @Thomas_Basinger,

Please go to Actions > Edit code > Layout > theme.liquid file. You can add it in this file

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com