Tagged: polylang
-
AuthorPosts
-
July 1, 2020 at 11:54 am #1227227
Normaly enfold works with polylang plugin.
But when i go to enfold setings and want to change for example the footer text: it change on all the languages not only the current one.Under WPML it’s easy, there a submenu on enfold settings to switch between languages.
But with polylang, even if i select on the top black bare “english” and when making enfold setings changes it do it on all languages.Any ideas?
July 2, 2020 at 10:22 am #1227428IMPORTANT
More clearely:
I need to change the footer copyright text for frech and for english
But if i modify the text it modify for all languages.July 5, 2020 at 4:02 pm #1228042Probably it is connected ot the issue I just had. Did you try to deactivate CSS compression under Performance Enfold settings? That was in my case the reason why the CSS applied to all languages
July 5, 2020 at 9:49 pm #1228092Hi,
Thank you for the update.
That is how the plugin works in the theme — a single theme option is applied to all languages unlike with WPML where there is a dedicated options page for each language.
If you need to translate text from the theme options such as the copyright text, then you’re going to have to use the String Translation extension.
// https://polylang.pro/doc/strings-translation/
Best regards,
IsmaelJanuary 23, 2023 at 6:58 pm #1394836Hi there, is there any update for translating footer and additional header-row when using polylang?
Or, is there any example how to use the polylang String Translation extension in this case?
Thanks!January 24, 2023 at 3:20 am #1394857Hi,
You can use the Loco Translate plugin with Polylang for additional translation options.
// https://wordpress.org/plugins/loco-translate/
Best regards,
IsmaelJanuary 24, 2023 at 5:08 pm #1394953Hi Ismael,
I want to translate dynamic content in the so called additional header-row of enfold theme, as well as in the footer.Loco translate states:
“What it’s NOT
Loco Translate does NOT translate dynamic content
Loco Translate only provides editing of static text stored in PO files. If you need to translate dynamic text stored in your database then it will not help you.”Did I miss something?
Thanks,
LonaJanuary 25, 2023 at 3:49 am #1395027Hi,
I want to translate dynamic content in the so called additional header-row of enfold theme
Would you mind providing a screenshot of these option or settings? You can use imgur, savvyify or dropbox. Thanks.
Best regards,
IsmaelJanuary 25, 2023 at 9:33 am #1395097Hi Ismael,
here you are:
https://www.dropbox.com/sh/in0354r52a4lryf/AAB_edSGA7RTdg14aEQVW8Ssa?dl=0
thxJanuary 26, 2023 at 7:03 am #1395306Hi,
Thank you for the screenshot.
Instead of adding the text directly in the field, we can create and use a custom shortcode that returns a specific text or content based on the active language. Please add the following code in the functions.php file.
function av_polylang_header_cb($atts, $content = null){ $text = ""; $lang = pll_current_language(); if($lang == "de") { $text = "Text for DE language"; } else { $text = "Text for EN language"; } return $text; } add_shortcode('av_polylang_header', 'av_polylang_header_cb');
In the phone field or small info text field, use this shortcode.
[av_polylang_header]
Best regards,
IsmaelJanuary 27, 2023 at 8:21 am #1395531Hi Ismael,
thank you for the snippet!
I will try it later.
Best regards, LonaJanuary 27, 2023 at 11:18 am #1395551Works fine!
Thanks a lot!January 27, 2023 at 7:40 pm #1395644 -
AuthorPosts
- You must be logged in to reply to this topic.