-
AuthorPosts
-
February 24, 2023 at 9:11 am #1399105February 25, 2023 at 11:34 am #1399229
Hey Markus,
The page you linked to is password protected, please provide that password as well.
Best regards,
RikardFebruary 25, 2023 at 12:19 pm #1399244February 25, 2023 at 12:28 pm #1399245What do you mean by: can’t find in the post slider.
the place in postslider.php is set as :__( 'Read more', 'avia_framework' )
and this indicates that the string is translatable via lang files.
All translations are in the lang files (po/mo) in enfold/lang/ folder – on German there are two versions one with formal “Sie” the other informal “Du”I know the WPML is setting the lang attribute on html the correct way. So – if you change the language there is on html the lang mentioned:
lang=”en-US” or lang=”en-GB” – lang=”de-DE” etc.
if these are set – Enfold will use the corresponding lang file from lang folder.February 25, 2023 at 12:49 pm #1399247I do not understand that. I installed wpml correctly.
I can translate everything except the Read more link.
I have sent the access data. Please look at this directly. ThanksFebruary 25, 2023 at 2:21 pm #1399253i’m participant as you – so i do not see private content messages.
But you can inspect your page in developer tools of your browser – if on html tag the languages are present for each of your translated pages
then the enfold lang files will be taken to this corresponding setting. I work with WPML a long time – and i do know that they will place it in that manner.
And you are shure that this read more link comes from enfold – and not from a third party plugin?So sorry – then you had to wait til a mod looks into your page.
February 25, 2023 at 2:54 pm #1399255Thanks Guenni007, yes I use Enfold’s built-in post slider.
Rikard please look at the page and the problem
February 26, 2023 at 6:30 pm #1399329Hi,
Thanks for the login to your site, I found this script in your child theme functions.php that was changing the post slider read more text:function custom_more_script(){ ?> <script> (function($){ $(document).ready(function(){ $(".more-link").text("Mehr erfahren!"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_more_script');
This was also changing the English version of the text, I adjusted to this to account for each language:
function custom_more_script(){ ?> <script> (function($){ $('html[lang="de-DE"] .more-link').text('Mehr erfahren!'); $('html[lang="en-US"] .more-link').text('Learn more!'); }(jQuery)); </script> <?php } add_action('wp_footer', 'custom_more_script');
Please clear your browser cache and check.
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.