blakemwilson Posted April 7, 2022 Share Posted April 7, 2022 Site URL: https://www.janforcolorado.com/es/comunicados I have duplicate pages on my site for english and spanish language versions. However, I need to switch the "Read More" links on the squarespace pages to spanish using a custom change. How can I change that verbiage without changing it throughout the site? Link to comment
tuanphan Posted April 10, 2022 Share Posted April 10, 2022 First, in Code Injection, edit this code /* HOMEPAGE-LOGO LINKS TO PROPER LANGUAGE HOMEPAGE */ if (lang == "es") { $('a[href="/"]').attr("href", "/es/inicio/"); } to this /* HOMEPAGE-LOGO LINKS TO PROPER LANGUAGE HOMEPAGE */ if (lang == "es") { $('a[href="/"]').attr("href", "/es/inicio/"); $('body').addClass('es-body'); } Next, add this to Code Injection > Header <style> body.es-body a.blog-more-link { visibility: hidden; } body.es-body a.blog-more-link:before { content: "new read more"; visibility: visible; border-bottom: 1px solid; } </style> 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment