Jump to content

7.1 Drop Shadow on Product List and Related Products

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

Hello, 

I have very recently switched to 7.1. In 7.0, I used code (provided, kindly, on this forum) to create a drop shadow around product images on the 'product list' pages, and 'related products' within each product page. I'm having trouble applying the code in 7.1 and wondered if anyone could help please. Site is caferoyalbooks.com. I've attached a screenshot of the 7.0 site to show the shadow.

Thanks

The code I was using:

.ProductList-item:not( .tag-nosh ) .ProductList-outerImageWrapper {
  box-shadow : 2px 2px 3px;
  }

.ProductItem-relatedProducts-outerImageWrapper{
    opacity: 91% !important;
}

.ProductItem-relatedProducts-item ( .tag-nosh ) .ProductItem-relatedProducts-outerImageWrapper {
  box-shadow : 2px 2px 3px;
  }
.ProductItem-relatedProducts-outerImageWrapper {
  box-shadow : 2px 2px 3px;
  }

 

Screenshot 2024-05-30 at 14.23.00.png

Edited by whereami
link added
Posted
3 hours ago, tuanphan said:

You can use this CSS code

div.grid-item:not(.tag-nosh) {
    box-shadow: 2px 3px 4px;
}

 

thank you @tuanphan — that works but also includes the item price and title in the drop shadow. Is there a way to only include the image?

  • Solution
Posted
On 6/2/2024 at 10:25 AM, tuanphan said:

You can use this CSS code

div.grid-item:not(.tag-nosh) {
    box-shadow: 2px 3px 4px;
}

 

Remove this & use new code

div.grid-item:not(.tag-nosh) .grid-image {
    box-shadow: 2px 3px 4px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
10 minutes ago, tuanphan said:

Remove this & use new code

div.grid-item:not(.tag-nosh) .grid-image {
    box-shadow: 2px 3px 4px;
}

 

thanks very much again for your help.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.