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

How to translate "Read more" in multilingual site


MelindaMellukas

Question

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
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

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

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