Re: Change Background Color in "Featured Product" Section Dawn Theme

Change Background Color in "Featured Product" Section Dawn Theme

palettepaws
Excursionist
14 0 7

asdfasdfasdfasdf.PNG

 

There are 2 sections here, "Rich text" section and "Featured Product" section.
I have added this custom css to both section.

div {
  background-color: #f5f5f5;
}

This simple code did the job and changed the background color to light grey.
However, The "Featured Product" section div is not full-width, there's a huge gap without background color at both side.
I tried adding this css code below, but the content inside become full-width as well.

div {
  background-color: #f5f5f5;
  max-width: 100%;
}

dfasdfasdfasdf123123.PNG

I would like to fill up the background color of the "Featured Product" Section while having the content stay the same size. 

Any expert familiar with Dawn theme here know how to fix this?

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
8376 2004 2463

Hi @palettepaws 

Would you mind to share your Store URL website? with password if its protected. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
palettepaws
Excursionist
14 0 7
It's palettepaws.com
Password is cheath

Made4uo-Ribe
Shopify Partner
8376 2004 2463

Thank you for the information. 

Try this one then.

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

section#shopify-section-template--20653650510129__7416bdd0-56e2-41e3-82cb-07cb1058f791 {
    max-width: var(--page-width);
    margin: auto;
    padding: 0 5rem;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1695331180400.png
If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
palettepaws
Excursionist
14 0 7

asdfasdfasdfasdf.PNG

hmmm tried it, but doesn't seem to solve the issue.
What i wanted was simply have the same light grey color at both left and right side.

Made4uo-Ribe
Shopify Partner
8376 2004 2463

Oh sorry I miss understand, i checked your website now. Is this solved? 

Made4uoRibe_0-1695391054640.png

This is Screen Shot at the moment.

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.