FrancisD Posted September 28, 2022 Share Posted September 28, 2022 (edited) Hi everyone, How to change the default text labels in Bedford template? Here is what I want to do, step by step: First Have a look at the uploaded image. How can I change the default navigation text "← Back to ..." generated in the Bedford template. I would like to just have "← Back" or in French "← Retour" instead of "← Back to Boutique en ligne". FYI, "Boutique en ligne" is the title name of the product page. Is there a way to change this default text using Javascript in the footer? Or any other way? Second Also, how can I change the default text "Select" from the dropdown menus? Third How to change the default text for the "Quantity" ? Finally How to change the default text for the "Add to cart" button. Thanks Edited September 29, 2022 by FrancisD Link to comment
Beyondspace Posted September 29, 2022 Share Posted September 29, 2022 17 hours ago, FrancisD said: Hi everyone, How to change the default text labels in Bedford template? Here is what I want to do, step by step: First Have a look at the uploaded image. How can I change the default navigation text "← Back to ..." generated in the Bedford template. I would like to just have "← Back" or in French "← Retour" instead of "← Back to Boutique en ligne". FYI, "Boutique en ligne" is the title name of the product page. Is there a way to change this default text using Javascript in the footer? Or any other way? Second Also, how can I change the default text "Select" from the dropdown menus? Third How to change the default text for the "Quantity" ? Finally How to change the default text for the "Add to cart" button. Thanks Can you share your site with the protected password so I 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
FrancisD Posted September 30, 2022 Author Share Posted September 30, 2022 Hi, thank you Bangank36, here is the link:https://francisdufourphotography.com/boutique/vestiges-shelter-bay-xa9xl-5am2n-cyl5d Link to comment
tuanphan Posted October 1, 2022 Share Posted October 1, 2022 14 hours ago, FrancisD said: Hi, thank you Bangank36, here is the link:https://francisdufourphotography.com/boutique/vestiges-shelter-bay-xa9xl-5am2n-cyl5d Add this code to Last Line in Code Injection > Footer <script> $(document).ready(function(){ $("div#productNav a").html(function() { return $(this).html().replace("Back to Boutique en ligne", "Retour"); }); }); </script> 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
FrancisD Posted October 1, 2022 Author Share Posted October 1, 2022 (edited) Thank you so much! It works! Here is my code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("div#productNav a").html(function() { return $(this).html().replace("Back to Boutique en ligne", "Retour"); }); }); </script> <script> $(document).ready(function(){ $(".product-price").html(function() { return $(this).html().replace("from", "à partir de "); }); }); </script> <script> $(document).ready(function(){ $(".sqs-add-to-cart-button-inner").html(function() { return $(this).html().replace("Add To Cart", "Ajouter au panier"); }); }); </script> <script> $(document).ready(function(){ $(".quantity-label").html(function() { return $(this).html().replace("Quantity", "Quantité"); }); }); </script> <script> $(document).ready(function(){ $(".variant-select-wrapper select").html(function() { return $(this).html().replace("Select Produit", "Sélectionner un produit"); }); }); </script> <script> $(document).ready(function(){ $(".variant-select-wrapper select").html(function() { return $(this).html().replace("Select Taille", "Sélectionner une taille"); }); }); </script> <script> $(document).ready(function(){ $(".back-to-top").html(function() { return $(this).html().replace("Back to Top", "Haut de Page"); }); }); </script> Edited October 1, 2022 by FrancisD Link to comment
tuanphan Posted October 2, 2022 Share Posted October 2, 2022 17 hours ago, FrancisD said: Thank you so much! It works! Here is my code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("div#productNav a").html(function() { return $(this).html().replace("Back to Boutique en ligne", "Retour"); }); }); </script> <script> $(document).ready(function(){ $(".product-price").html(function() { return $(this).html().replace("from", "à partir de "); }); }); </script> <script> $(document).ready(function(){ $(".sqs-add-to-cart-button-inner").html(function() { return $(this).html().replace("Add To Cart", "Ajouter au panier"); }); }); </script> <script> $(document).ready(function(){ $(".quantity-label").html(function() { return $(this).html().replace("Quantity", "Quantité"); }); }); </script> <script> $(document).ready(function(){ $(".variant-select-wrapper select").html(function() { return $(this).html().replace("Select Produit", "Sélectionner un produit"); }); }); </script> <script> $(document).ready(function(){ $(".variant-select-wrapper select").html(function() { return $(this).html().replace("Select Taille", "Sélectionner une taille"); }); }); </script> <script> $(document).ready(function(){ $(".back-to-top").html(function() { return $(this).html().replace("Back to Top", "Haut de Page"); }); }); </script> You can combine them <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("div#productNav a").html(function() { return $(this).html().replace("Back to Boutique en ligne", "Retour"); }); $(".product-price").html(function() { return $(this).html().replace("from", "à partir de "); }); $(".sqs-add-to-cart-button-inner").html(function() { return $(this).html().replace("Add To Cart", "Ajouter au panier"); }); $(".quantity-label").html(function() { return $(this).html().replace("Quantity", "Quantité"); }); $(".variant-select-wrapper select").html(function() { return $(this).html().replace("Select Produit", "Sélectionner un produit"); }); $(".variant-select-wrapper select").html(function() { return $(this).html().replace("Select Taille", "Sélectionner une taille"); }); $(".back-to-top").html(function() { return $(this).html().replace("Back to Top", "Haut de Page"); }); }); </script> 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
Fedetest Posted March 14 Share Posted March 14 Hi there! Im trying to do the same on my site and cannot make it work 😕 I want to change a series of texts like: - 'from €75.00' to 'Vanaf €75.00' - 'Select Selecteer uw bijdrage' to 'Selecteer uw bijdrage' Can someone please help? Much appreciated! Site is: https://tiles-of-the-sun.squarespace.com/store/p/tiles-of-the-sun-city-landscape-9k5eb Link to comment
paul2009 Posted March 14 Share Posted March 14 4 hours ago, Fedetest said: I want to change a series of texts like: - 'from €75.00' to 'Vanaf €75.00' Have you tried setting the site language to Dutch? It should then automatically appear as "vanaf". You'll find this setting in Website > Site Languages: 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment