Change product grid background colour in Craft Theme

Hi. I need help changing the background colour of my product grid, product information and blog to white. Essentially, I want to use theme 2 for my product grid, product information and blog but there is no option to do this. Is there a code that will help?

Thanks.

2 Likes

Hi @themessengersco

Would you mind taking a look and sharing your store’s URL along with the password if it’s protected?

Hi, sure.

https://themessengerscollective.com/

1 Like

Thank you. Try 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:
div#shopify-section-template--20351431770422__main-collection-product-grid {
    background: black;
}
aside#main-collection-filters * {
    color: white;
}
section#shopify-section-template--20351431999798__main {
    background: black;
}
section#shopify-section-template--20351432130870__main {
    background: black;
    color: white;
}
.product__info-wrapper.grid__item * {
    color: white;
}

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

2 Likes

Thank you so much. It worked.

The only other issue I have now is that the blog page is still the same and the product cards are also. Is there a way to make the product cards white and the blog page background white also? Lastly, I have an bundle app by Addly that I am using and would like to make the background white also.

Thanks again

1 Like

Let see, may I have the password of the store?The blog page didnt change? I remember, I change color on 3 pages. Thanks!