Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello!
I am working on my site, and have been working on using code to change the background colors of sections. I was able to change the color of a section, but for some reason it is not doing the entire section (see attached picture). I was able to get this to work on some other pages but for some reason it won't work for this one
The code I am using is:
section#shopify-section-template--15889756487746__1726069680f273bea4 {
background: #121212;
}
Site Address: https://a6aaf7-b7.myshopify.com/
Password: MSRed
Solved! Go to the solution
This is an accepted solution.
Hi @davidignite
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
main#MainContent {
background: #121212;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @davidignite
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
main#MainContent {
background: #121212;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Just slapped my forehead so hard.... I tried every combination except for this one... You are a wizard, that worked perfectly, thank you so much!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025