Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to translate CTA button in a way it doesnt jump when navigate between menu items


MelindaMellukas

Question

Site URL: https://cinnamon-chameleon-6wa9.squarespace.com/

Hi, I managed to change in estonian version nicely but english version it changes all the time to "Kontakt" to "Contact" visbily:

https://cinnamon-chameleon-6wa9.squarespace.com/en/home

 

Code I used:

 /* ADD EXCLUSION NAV ITEMS */
  $('.exclude-me,.exclude-me a').addClass('exclude');
  $('.sqs-svg-icon--list a,.SocialLinks-link').addClass('exclude');
});
    $(document).ready(function(){
    $("body.body-en a.btn").html(function() { 
          return $(this).html().replace("Kontakt", "Contact");  
    });
  $("body.body-en a.btn").attr('href','/en/contact');
        });
</script>

 

 

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0
5 hours ago, MelindaMellukas said:

Site URL: https://cinnamon-chameleon-6wa9.squarespace.com/

Hi, I managed to change in estonian version nicely but english version it changes all the time to "Kontakt" to "Contact" visbily:

https://cinnamon-chameleon-6wa9.squarespace.com/en/home

 

Code I used:

 /* ADD EXCLUSION NAV ITEMS */
  $('.exclude-me,.exclude-me a').addClass('exclude');
  $('.sqs-svg-icon--list a,.SocialLinks-link').addClass('exclude');
});
    $(document).ready(function(){
    $("body.body-en a.btn").html(function() { 
          return $(this).html().replace("Kontakt", "Contact");  
    });
  $("body.body-en a.btn").attr('href','/en/contact');
        });
</script>

 

 

I check it look good in English version. Have you solved it yet?

image.thumb.png.9f249c7dfe07db3369f1dae93641f688.png

Edited by bangank36

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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...