How to change the grey frame arround product into white

Topic summary

A user seeks help removing or changing the grey frame around products on their collection page to white.

Two solutions provided:

Solution 1 (Moeed):

  • Navigate to Online Store → Edit Code → theme.liquid
  • Add custom CSS code above the </body> tag
  • Code snippet provided but appears corrupted/reversed in the original text

Solution 2 (Made4uo-Ribe):

  • Go to Online Store → Themes → Edit theme
  • Locate the CSS file (main.css, base.css, style.css, or theme.css) in the Asset folder
  • Add specific CSS targeting the product grid padding/background:
.section-template--collection-main-product-grid-padding {
  background: rgb(var(--color-background));
}
  • Place code at the bottom of the CSS file and save

Both responders included visual examples and requested the original poster mark helpful responses as solutions. The discussion remains open pending confirmation from the user on which approach worked.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

https://www.awakeningra.com/collections/all

Hey @tarekanani

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi @tarekanani

Do you mean like this?

If it is check this one.

  1. From you Admin page, go to Online Store > Themes
  2. Select the theme you want to edit
  3. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  4. Then place the code below at the very bottom of the file.
.section-template--15862103081193__main-collection-product-grid-padding {
    background: rgb(var(--color-background));
}
  • And Save.

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