Shopify themes, liquid, logos, and UX
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!
Solved! Go to the solution
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @PrintsCharming1
You want like this.
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?
Right ?
Yes that's right, plus the titles will need to be black instead of white
Try this one.
div#shopify-section-collection-template .layout__section .collection * {
background:#424242;
color: white;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
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?
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:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thank-you so much for your help!
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:
Best,
Liz
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025