Jump to content

How to translate "Read more" in multilingual site

Recommended Posts

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

Hi,

I used on footer this code and it worked well in the estonian version https://cinnamon-chameleon-6wa9.squarespace.com/et/blogi

</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$('.blog-more-link:contains("Read More")').text('Loe rohkem'); 
</script>
<style>

 

However, how do I keep Read more in the English version?

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

Link to comment
  • Replies 6
  • Views 280
  • Created
  • Last Reply

Top Posters In This Topic

Are you able to move this code into the page specific "Advanced Code Injection" via the page settings menu instead of site-wide header/footer injection? If I'm understanding this correctly, you have several separate pages for each language in which case this might help solve your problem without writing new JS. 

Link to comment
On 10/28/2021 at 2:29 PM, MelindaMellukas said:

Hi, unfortunately it didnt work 😞

Edit this code

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$('.blog-more-link:contains("Read More")').text('Loe rohkem'); 
</script>

to this

<script>
$('body.body-et .blog-more-link:contains("Read More")').text('Loe rohkem'); 
</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

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.