PeterWard Posted November 2, 2020 Share Posted November 2, 2020 I'm trying to add some common text to the Product Details page that appears for every product. I could add the text manually in the product description or additional Info on every product record, but hopefully there's a way to add it once somewhere in the code so that it appears at the end of the product additional info automatically. Thank you in advance Link to comment
Beyondspace Posted November 2, 2020 Share Posted November 2, 2020 I think we need to inject it by code, what is your site url and your text needed to be added? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
PeterWard Posted November 3, 2020 Author Share Posted November 3, 2020 Hey thanks bangank36... Website is :https://www.blaiserubyloves.co.uk/shop/p/mansur-gavriel-beige-tote Password: buster The text I want for every product is the part that starts with "For more on this bag.....". At the moment i have to type that into every product description Link to comment
Beyondspace Posted November 4, 2020 Share Posted November 4, 2020 6 hours ago, PeterWard said: Hey thanks bangank36... Website is :https://www.blaiserubyloves.co.uk/shop/p/mansur-gavriel-beige-tote Password: buster The text I want for every product is the part that starts with "For more on this bag.....". At the moment i have to type that into every product description You may need js to help with, modify it at your will and place it in Advanced->Custom code injection <script> var addedText = '<p class="" style="white-space:pre-wrap;"><em>For more on this bag head to @blaiserubyloves instagram for more in depth videos and pictures of this bag and others, where you will see more on condition, imagery of the bag and styling tips. </em></p>'; document.addEventListener('DOMContentLoaded', function() { if ( document.querySelector(".ProductItem-details-excerpt") ) { document.querySelector(".ProductItem-details-excerpt").insertAdjacentHTML("beforeend", addedText); } }); </script> MaryO and tuanphan 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
PeterWard Posted November 4, 2020 Author Share Posted November 4, 2020 Thats brilliant. Thanks bangank36.. On the mark tuanphan and Beyondspace 1 1 Link to comment
tuanphan Posted November 5, 2020 Share Posted November 5, 2020 On 11/4/2020 at 7:32 PM, PeterWard said: Thats brilliant. Thanks bangank36.. On the mark Some feedback for your site, hope it useful I see on product page, it shows number (1/3), you can consider adding a slideshow arrows, users can easily navigate to view more pictures You can add this to Home > Design > Custom CSS to achieve this. /* Arrow slide */ /* Product slide arrows control */ @media screen and (max-width:767px) { .ProductItem-gallery-carousel-controls { display: flex !important; } /* arrows background */ .ProductItem-gallery-carousel-controls * { background: white; } .ProductItem-gallery-carousel-controls>div { justify-content: center !important; } .ProductItem .ProductItem-gallery-carousel-controls>div::after, .ProductItem .ProductItem-gallery-carousel-controls>div::before { border-color: black !important; } } Also, the product page has very long content, you can add a back to top button, it would be better. Eg this page. https://www.blaiserubyloves.co.uk/shop/designers You can follow this guide to add one. 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
violetcraft Posted October 22, 2022 Share Posted October 22, 2022 this is really helpful. Is there a way to add the text only to digital products? Link to comment
Beyondspace Posted October 22, 2022 Share Posted October 22, 2022 39 minutes ago, violetcraft said: this is really helpful. Is there a way to add the text only to digital products? Can you share your site URL with the digital products so we can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
violetcraft Posted October 22, 2022 Share Posted October 22, 2022 3 hours ago, bangank36 said: Can you share your site URL with the digital products so we can take a look? Yes! I would love to add one set of text to all physical products and a second set to all digital products. https://www.violetcraft.com/ 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