How do I make the background of the products grey like in the store Kids One Store?

My website link: https://yosdujqz5pdwd0ns-92042887508.shopifypreview.com

Kids One Store: https://kidsonestore.se/

1 Like

Hi @OneCap
Please put this css in theme.liquid before body closing tag


Thanks!

Go to your online store → edit code → theme.css file and paste this code there

.product-item {
    background-color: #f5f5f5;
    padding: 5px;
}

Hi @OneCap

Is this for all collection product? If it is 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:
product-item.product-item:after {
    bottom: 0;
    box-shadow: inset 0 0 152px #00000014;
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Add this code in your base.css file:

.product-item__image-wrapper.product-item__image-wrapper--multiple::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000017;
  z-index: 999;
  pointer-events: none;
}

Result:

Hi @OneCap ,

You can follow the steps here:

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

Here is the code for step 3:

product-item.product-item {
    background: rgba(0,0,0,0.05);
}

Here is the result:

Please let me know if it works!

Best,

Daisy

Hi @OneCap

You can do that by adding this code to Custom CSS in Online Store > Themes > Customize > Theme settings

.product-item:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: inset 0 0 152px #00000016;
    pointer-events: none;
}