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 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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