abc Posted September 16, 2023 Share Posted September 16, 2023 I have a summary block displayed on every store product page. Is it possible to exclude the current product from the summary block? I've found this code that works for blog posts, but doesn't seem to work for store products. Any help would be appreciated. Website URL: steven.squarespace.com/clients/p/blackfoot-hospitality Thank you Link to comment
abc Posted September 19, 2023 Author Share Posted September 19, 2023 Just checking to see if anyone knows of a solution. Link to comment
tuanphan Posted September 21, 2023 Share Posted September 21, 2023 Try this CSS code .ProductItem .ProductItem-additional .summary-item:first-child { display: none; } .ProductItem .ProductItem-additional .summary-item { clear: none !important; } 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!) Link to comment
abc Posted September 22, 2023 Author Share Posted September 22, 2023 15 hours ago, tuanphan said: Try this CSS code .ProductItem .ProductItem-additional .summary-item:first-child { display: none; } .ProductItem .ProductItem-additional .summary-item { clear: none !important; } Hi Tuan, unfortunately, this code only works if the excluded item is first-child. But it's not always the case in my store. Sometimes the excluded item is first, other times it's 2nd, or 3rd, or last. Is there a JS code that would automatically exclude the current product no matter its position in the summary block? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment