Mr-WOODLVING Posted August 24, 2022 Share Posted August 24, 2022 (edited) Site URL: https://woodliving.dk/webshop/bord-rustic-gb2 Hi On my webstore I have this product that is sold out. this item is a on-off-a-kind and I want to hide the waitlist section for this item. I can hide restock notification for all products, but I really what to hide the restock notification for all item belonging to a specific category. Like <article class = "category-borde"> <article class="sqs-pinterest-products-wrapper ProductItem hentry category-borde tag-palletr tag-spisebord tag-konferencebord tag-rustic author-michael-roepstorff post-type-store-item on-sale sold-out products-collection-v2" data-item-id="5dea232497b2c53a5ec3789e" id="yui_3_17_2_1_1661321222427_193"> The following code will hide all restock notifications. I just don't know how to combine/target that article class = "category-borde" into this code. /Start: Hide waitlist for BORDE .product-restock-notification { display: none !important; } //End: Hide waitlist for BORDE Please help. I know you guys are great. Regards Thomas Edited August 25, 2022 by Mr-WOODLVING question updated. Link to comment
Solution paul2009 Posted August 26, 2022 Solution Share Posted August 26, 2022 On 8/24/2022 at 7:06 AM, Mr-WOODLVING said: I can hide restock notification for all products, but I really what to hide the restock notification for all item belonging to a specific category... category-borde. As you mentioned, products in the category 'borde' will have the class "category-borde" so you should be able to hide the notification with this CSS (in Design > Custom CSS): .category-borde .ProductItem-details .product-restock-notification:not([hidden]) { display: none; } If this post has helped you, please click a 'Like' or 'Thanks' icon below ⬇️ Mr-WOODLVING 1 Improve your online store with our extensions.About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links.Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)Buy me a coffee Link to comment
Mr-WOODLVING Posted August 26, 2022 Author Share Posted August 26, 2022 Thanks you so much. I see that the .category-borde and .ProductItem-details narrow is down so .product-restock-notification can be targeted. And your sniplet works like a charm. paul2009 1 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