Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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?

    #1227428

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

    #1228042

    Probably 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

    #1228092

    Hi,

    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,
    Ismael

    #1394836

    Hi 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!

    #1394857

    Hi,

    You can use the Loco Translate plugin with Polylang for additional translation options.

    // https://wordpress.org/plugins/loco-translate/

    Best regards,
    Ismael

    #1394953

    Hi 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,
    Lona

    #1395027

    Hi,

    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,
    Ismael

    #1395097
    #1395306

    Hi,

    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,
    Ismael

    #1395531

    Hi Ismael,
    thank you for the snippet!
    I will try it later.
    Best regards, Lona

    #1395551

    Works fine!
    Thanks a lot!

    #1395644

    Hi yolona,

    Great, I’m glad that Ismael could help you out.

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.