• Resolved Sophie Porte

    (@sophie-porte)


    Hello ;

    I am using WordPress 4.2.2 (in french) with a theme I created as a child-theme of Canvas from Wootheme (https://www.woothemes.com/products/canvas/)

    The website is online here : https://www.fermehelene.com/

    I’m using a static front page.
    Permalinks setting = name of the article : https://www.fermehelene.com/exemple-article/

    I installed Polylang 1.7.6 to make my site multi-lingual (I have a german and an english versions)
    – – –
    Polylang settings :
    default language = french
    language code is used as a directory name in the url
    Remove /language/ in pretty permalinks = yes
    Hide URL language information for the default language = yes
    Media: yes
    Synchronisation: yes for all
    – – –

    The Top Menu is translated fine.

    But in the footer I used widgetized areas to create colons in which I placed 4 personnalisable menu widgets.
    Polylang recognizes the titles of those menus and enable me to translate them in the other languages ; but the content of those widget (my menus) are not recognized, so I can’t translate them.

    My second problem is that I use Meta Slider (https://www.metaslider.com/). Same thing, I don’t know how to make my layers upon slides recognizable by Polylang, and get it to switch to translated versions.

    What should I do ?

    I am just a graphic designer and webmaster, I don’t know php, but I can replace bits of code in custom child-theme files if needed.

    Thanks for your support !

    Sophie

    https://www.ads-software.com/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Chrystl

    (@chrystl)

    but the content of those widget (my menus) are not recognized, so I can’t translate them.

    For all widgets you have the possibility to choose to display it for all languages (default) or only one language.

    I don’t know how to make my layers upon slides recognizable by Polylang, and get it to switch to translated versions.

    See: https://www.ads-software.com/support/topic/different-languages-in-slides-of-meta-slider?replies=4

    Maybe disabling also the media translation in Polylang settings would help. (Settings > Languages > Settings tab : Media)

    Thread Starter Sophie Porte

    (@sophie-porte)

    Hi Chrystl ;

    Thank you for your very quick answer.

    About translating MEta Slider, in the meantime, I found the solution in another post, and added the following code to my child-theme homepage php template :

    <?php
        $currentlang = get_bloginfo('language');
    
        if($currentlang=="fr-FR") {
            echo do_shortcode('[metaslider id=xx]'); // French
        }
    
        if($currentlang=="de-DE") {
            echo do_shortcode('[metaslider id=xxx]'); // German
        }
    
        if($currentlang=="en-US") {
            echo do_shortcode('[metaslider id=xxxx]'); // English
        }
    ?>

    (of course you need to put your own metaslider slider id number instead of the id=xxx)

    No need to disable the media translation in Polylang settings.

    This worked very well for me, so I share it ??

    I will test your solution for the translation of widgets, before marking the topic as resolved.

    Sophie

    Thread Starter Sophie Porte

    (@sophie-porte)

    Hi Chrytl ;

    Thanks for your help about the translation of widgets, it’s all ok now for me. I’m marking the tpic as “resolved”. Have a nice day !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Polylang with Canvas : translating widgetized areas Meta Slider layers’ is closed to new replies.