Jump to content

How to Change Default Text Labels in Squarespace

Recommended Posts

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

Capture d’écran, le 2022-09-29 à 09.07.42.png

Edited by FrancisD
Link to comment
  • FrancisD changed the title to How to Change Default Text Labels in Squarespace
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

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

Capture d’écran, le 2022-09-29 à 09.07.42.png

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)
🗓️ 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
14 hours ago, FrancisD said:

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

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 by FrancisD
Link to comment
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
  • 1 year later...
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".

image.png.5638c835e15d7a37553e83d5d633fcb8.png

You'll find this setting in Website > Site Languages:

image.thumb.png.29dd62f28716232019104700962f4f3c.png

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.