How to change background color of collection grid?

Solved

How to change background color of collection grid?

PrintsCharming1
Tourist
6 0 4

Hello, could someone kindly help me change the background to my collection items from white to hex #424242 grey?

I have tried within the theme settings, however it changes other areas of the page background too... I only want the area behind the product images to be grey.

I will also need to change all the text on this section to white, so it can be readable!

Here's the webpage link: https://printscharming.com/collections/in-the-gallery

Thanks in advance for your help!

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10043 2388 3016

This is an accepted solution.

Replace on this code. 

 

div#shopify-section-collection-template .layout__section .collection * {
    background:#424242;
} 

.collection__header-inner *, .product-item__info a, 
.collection__toolbar.collection__toolbar--bordered *, .collection__dynamic-part .pagination {
    color: white;
}

 

And Save, 

Result:

Made4uoRibe_0-1739034295479.png

 

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 9 (9)

devcoders
Shopify Partner
1169 140 330

Hello @PrintsCharming1 
You want like this.

devcoders_0-1738952444029.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
PrintsCharming1
Tourist
6 0 4

Hi! The only background I want to be grey is the box "In The Gallery" which contains all the product images, if that's possible?

devcoders
Shopify Partner
1169 140 330

Right ?

devcoders_0-1738953002391.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
PrintsCharming1
Tourist
6 0 4

Yes that's right, plus the titles will need to be black instead of white

Made4uo-Ribe
Shopify Partner
10043 2388 3016

Hi @PrintsCharming1 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

div#shopify-section-collection-template .layout__section .collection * {
    background:#424242;
    color: white;
} 

 

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

     

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
PrintsCharming1
Tourist
6 0 4

Hi, thank-you for your advice! This is very close to what I'm looking for, although I was hoping to keep the background to the top of the section in white (where it reads In The Gallery and has drop down selectors).... also, I would like the prices to remain in green. Is that possible with CSS?

Made4uo-Ribe
Shopify Partner
10043 2388 3016

This is an accepted solution.

Replace on this code. 

 

div#shopify-section-collection-template .layout__section .collection * {
    background:#424242;
} 

.collection__header-inner *, .product-item__info a, 
.collection__toolbar.collection__toolbar--bordered *, .collection__dynamic-part .pagination {
    color: white;
}

 

And Save, 

Result:

Made4uoRibe_0-1739034295479.png

 

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
PrintsCharming1
Tourist
6 0 4

Thank-you so much for your help!

LizHoang
Shopify Partner
1251 159 196

Hi PrintsCharming1

- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file theme.css and add this code at the end of the file

 

span.price {
    color: green !important;
}

 

Result: 

LizHoang_0-1739015414939.png

 

Best,
Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program