Change color of section on homepage - using Minimal Theme

Solved
sammii18
Tourist
4 0 0
I have been trying to change the background colour of the custom HTML section on my homepage (using minimal theme) but everything I have tried doesn’t seem to work or changes the background color of the whole homepage? Site is www.littlelovebugclothing.com.au and it’s the section - sale on now (custom HTML) can you please advise what I should be entering and whereabouts? Thank you in advance
Accepted Solutions (2)
ThomasBorowski
Shopify Expert
803 71 230

This is an accepted solution.

The following tutorial assumes your're using Minimal 10.1.1 or that the relevant code in the version of your theme you're using is the same or at least similar.

 

Please be sure to make a backup of your theme before you make any changes to the code!

 

Go to the theme editor (Online Store -> Themes -> Actions -> Edit code) and open the file custom_html.liquid in the Sections folder. Replace the entire contents of that file with the code from this URL: https://raw.githubusercontent.com/tomatic/shopify-section-mods/master/Minimal/Sections/custom_html.l...

 

That will let you set an optional background color for the Custom HTML section. It also adds some padding to the section when a background color is set.

★ Smart Upgrades, Tips and Tutorials for Shopify themes: cartpunk.com
Did my solution work? Help other Community members easily find the correct solution and apply it to their own stores by marking it as the Accepted Solution and giving it a Thumbs Up

View solution in original post

Jasoliya
Shopify Expert
4728 616 1184

This is an accepted solution.

Hi,

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

#shopify-section-1559291747590{background-color: #eae1d8;}

Note: This is not solution as i sent using just console, but it work well, if you remove this section and add again it will no longer work.

 

Let me know if you need help.

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here

View solution in original post

Replies 16 (16)
ThomasBorowski
Shopify Expert
803 71 230

This is an accepted solution.

The following tutorial assumes your're using Minimal 10.1.1 or that the relevant code in the version of your theme you're using is the same or at least similar.

 

Please be sure to make a backup of your theme before you make any changes to the code!

 

Go to the theme editor (Online Store -> Themes -> Actions -> Edit code) and open the file custom_html.liquid in the Sections folder. Replace the entire contents of that file with the code from this URL: https://raw.githubusercontent.com/tomatic/shopify-section-mods/master/Minimal/Sections/custom_html.l...

 

That will let you set an optional background color for the Custom HTML section. It also adds some padding to the section when a background color is set.

★ Smart Upgrades, Tips and Tutorials for Shopify themes: cartpunk.com
Did my solution work? Help other Community members easily find the correct solution and apply it to their own stores by marking it as the Accepted Solution and giving it a Thumbs Up
sammii18
Tourist
4 0 0

Thank you so much it worked perfectly! As a newbie I really appreciate your help and super fast reply  thank you 

sammii18
Tourist
4 0 0

Absolutely perfect - exactly as I had hoped - have been trawling for days to find a solution, really appreciate the super quick and easy to follow instructions thanks again!

Jasoliya
Shopify Expert
4728 616 1184

My pleasure, mark as solution so user get exact answer when he search. 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here
ThomasBorowski
Shopify Expert
803 71 230

@Jasoliya As you state yourself, your code will only work in this single, particular case, so calling it a solution might be a bit confusing for anyone who finds this post later on and tries it on their theme.

★ Smart Upgrades, Tips and Tutorials for Shopify themes: cartpunk.com
Did my solution work? Help other Community members easily find the correct solution and apply it to their own stores by marking it as the Accepted Solution and giving it a Thumbs Up
Jasoliya
Shopify Expert
4728 616 1184

Hi @ThomasBorowski  yes, you are right, that's why i have noted bellow my post and there are no other way to solve this with console.

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here
Cherizzle
Excursionist
24 0 4

Since this seems to be theme specific can someone help me out with the same for the Brooklyn theme> I found out how to do it for the rich text sections but not the customer html. 

 

Thank you!

Brad new at this....

Jasoliya
Shopify Expert
4728 616 1184

Send your store url and let me know on which section you want to change color 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here
Cherizzle
Excursionist
24 0 4

Thank you for your reply. I decided to use a different theme. 

Jaken
New Member
8 0 0
How would you do this on minimal theme for rich text, slideshow or image with text sections? Thanks
Levelnaturals
New Member
1 0 0

Hi There, 

 

Trying to update my homepage with several different color blocks as you scroll down the page. Does anyone know how to do this? website is www.levelnaturals.com 

 

Thanks in advance for your help! 

Shay

Jasoliya
Shopify Expert
4728 616 1184

Hi

Send me store url and password if any then send me section on which you want to change color. 

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here
Noah415
New Member
2 0 0

Hello, need to do the same. Add a color block (light grey) to a section of the homepage. How can I do this?

thanks!

noah

Jasoliya
Shopify Expert
4728 616 1184

Send em store url

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here
Jasoliya
Shopify Expert
4728 616 1184

This is an accepted solution.

Hi,

Follow this:

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste bellow code in bottom of file

#shopify-section-1559291747590{background-color: #eae1d8;}

Note: This is not solution as i sent using just console, but it work well, if you remove this section and add again it will no longer work.

 

Let me know if you need help.

Want custom changes? hire me.
3 months of Shopify are available for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles.
Want to get Free review and advice for sale on store ?? just text me here
WildOne
New Member
3 0 1

Hi, can I use this on my page? I am trying to add some blocks of grey to my homepage 

Thank you