hasher22 Posted May 9, 2021 Share Posted May 9, 2021 (edited) Site URL: https://salmon-hibiscus-r5wx.squarespace.com Password: dante123 EDIT: I fixed it! How? I had to target the section THEN the ID. So my CSS looks like this: section[data-section-id="608ab106b153c010dc12f69a"] .product-quantity-input, { display: none; } Hey guys, In a single product page, I want to 'display: none' on the quantity but only 'visibility: hidden' works. Why is this? I am targeting the right class. The reason why I want to use 'display: none' is because the "add to cart" button bumps up. When using visibility: hidden, the add to cart button does not bump up as per screenshot. I have used 'display: none' on my front page and it works and it does bump up the "add to cart" button. Why doesn't this css code work in the single product page? Edited May 9, 2021 by hasher22 Beyondspace 1 Link to comment
Beyondspace Posted May 10, 2021 Share Posted May 10, 2021 18 hours ago, hasher22 said: Site URL: https://salmon-hibiscus-r5wx.squarespace.com Password: dante123 EDIT: I fixed it! How? I had to target the section THEN the ID. So my CSS looks like this: section[data-section-id="608ab106b153c010dc12f69a"] .product-quantity-input, { display: none; } Hey guys, In a single product page, I want to 'display: none' on the quantity but only 'visibility: hidden' works. Why is this? I am targeting the right class. The reason why I want to use 'display: none' is because the "add to cart" button bumps up. When using visibility: hidden, the add to cart button does not bump up as per screenshot. I have used 'display: none' on my front page and it works and it does bump up the "add to cart" button. Why doesn't this css code work in the single product page? You can use this to target ALL the product pages .collection-type-products.view-item .product-quantity-input { display: none !important; } tuanphan and hasher22 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
tuanphan Posted May 17, 2021 Share Posted May 17, 2021 @hasher22 Do you need to fix these? Site URL: https://salmon-hibiscus-r5wx.squarespace.com/ 1. (Tablet-Homepage) Huge bar on right of screen 2. (Tablet-Homepage) 3. (Tablet-Footer) Change to 2 columns? 4. (Cakes) You haven’t changed SEO Title so the browser tab name still shows “Store 2” 5. (Mobile-Products) Move description to left a bit? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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