Hey, short question:
If there are long texts which get shortened, there comes up an "(show all)" link which then immediately shows the rest of the text without loading a new page (and turnes to "(show less)" then).
Do you know where I can translate this link?
Best regards from Frankfurt, Germany!
Martin
Hi Martin,
These snippets are actually being generated below the theme template level, and will require some JavaScript to change. You can target the specific (show all) and (show less) links like so:
<script type="text/javascript">
$(window).load(function(){
$('a[href="#show more content"]').html('mehr');
$('a[href="#show less content"]').html('weniger');
});
</script>
Placing the above script at the bottom of the <body> container in your template file should do the trick.
Tschüss!
Showing 5 reactions
Sign in with
CampaignNOW - Advocacy tool for supporters to contact your campaign target
Freshhold Consulting
Code Nation
Code Nation
Certified Agency
Certified Architect
Certified Developer
$(function(){
$(‘.flash-message’).html($(‘.flash-message’).html().replace(‘Please check your e-mail for a link to activate your account’, ‘Por favor revise su correo para el enlace de activación’));
});
The English appears briefly before the script kicks in and delivers the translation when the page is ready.