New Shopify Certification now available: Liquid Storefronts for Theme Developers

Changing Product Collection Background

Solved
plants4friendz
Excursionist
18 0 7

Hello,

 

I'm trying to change the background color of this product collection section on my home screen.

 

Screenshot 2023-11-09 at 2.02.05 PM.png

 

I've done it in featured product section by adding css to the section:

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

 

However, when I do so for the Product Collection, it covers the images with white.

 

Screenshot 2023-11-09 at 2.05.51 PM.png

 

Any recommendations are appreciated~ My site is: thespiralpath.myshopify.com

 

Thank you!

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4192 964 1173

This is an accepted solution.

Hi @plants4friendz 

Check this one. 

  • 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:

 

.collection.section-template--16845158318325__featured_collection-padding {
    background: #ffff !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1699556975446.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 2 (2)
Made4uo-Ribe
Shopify Partner
4192 964 1173

This is an accepted solution.

Hi @plants4friendz 

Check this one. 

  • 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:

 

.collection.section-template--16845158318325__featured_collection-padding {
    background: #ffff !important;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1699556975446.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


plants4friendz
Excursionist
18 0 7

Thank you so much!