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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 11/1/2021 at 8:15 PM, MelindaMellukas said:

This didnt change it either.

Can you add & keep the code? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.