What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Dawn Theme- section background

How can I modify the background of a multicolumn section in the Dawn theme?

Adeles911
Tourist
6 0 1

Is there a way to change the background of a multicolumn section in the dawn theme? The options for secondary background in the section settings are "none", "show as column background", and "show as section background"

When I select the third background, it's using a light gray but I'm not sure where it's getting that color from. It's not in the theme settings. Thanks! 

Replies 6 (6)

ThomasBorowski
Shopify Partner
803 71 242

The background color of the Multicolumn section is set to the foreground color with 4 % transparency. So if your text color is black you'll get a light gray for the background of that section. If you want to change how that works you need to change this CSS rule in Assets/base.css:

ksnip_20220103-232753.png

★ 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
Adeles911
Tourist
6 0 1

Is there a way to set it to a certain hex color?

ThomasBorowski
Shopify Partner
803 71 242

You can replace the part that starts with rgba(var(... with a hex value, but that would affect more than just the Multicolumn section. If you only want to change the background color of Multicolumn sections, open the file Assets/section-multicolumn.css and add the following line (change the hex color code to whatever you want):

ksnip_20220104-093851.png

★ 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
Tsnz
New Member
4 0 0

Hi Thomas,

I am trying to follow your suggestion here also, I am following the second part...

 

If you only want to change the background color of Multicolumn sections, open the file Assets/section-multicolumn.css and add the following line (change the hex color code to whatever you want):

Tsnz_0-1652420551796.png

 

 

and when in the code there is absolutely nothing that states "secondary" within the assets - section - multicolumn etc.

I am using Dawn.

How would I change the multicolumn secondary background? 

ThomasBorowski
Shopify Partner
803 71 242

It's possible that Dawn's code has changed since I posted this. Shopify changed around lots of things in the most recent version of Dawn, they also changed how background colors etc. are applied. So this code might not work anymore and would have to be modified to work with those newer versions.

★ 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
Tsnz
New Member
4 0 0

That would definitely explain it. Thank you.