Support » Plugin: WP Multilang » WPML language switcher in reverse way

  • raf58

    (@raf58)


    hello,

    I manage a bilingual website french/russian

    I am using “Multilingual plugin for WordPress Version 2.4.1 | By Valentyn Riaboshtan”

    The way the switcher works is not appropriate for me : when one is on the french page, the flag displayed is “french” as well as its label (“francais)”

    but I would like to display instead the “russian” flag on the french page with its “Русский” label, so that users can switch, which would be more logical !

    I would see 2 solutions:
    1/ either have both flags visible and clickable
    2/ or create a new jpeg with both french/russian flags on it, to tell it is a switch

    but I do not find the way to import it : I do not see the “edit” WPML menu

    any idea ?
    thanks a lot !

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anticosti

    (@anticosti)

    @raf58
    Visit this link:
    wp-admin/options-general.php?page=wpm-settings&tab=languages

    and change the Name of your Russian language button to “Русский”: (note: screenshot is for French) here:
    https://www.dropbox.com/s/2aqhi0pwje8s6oj/Photo%202021-03-19%2013%2034%2000.jpg?dl=0

    Hope it help

    • This reply was modified 3 months ago by Anticosti.
    Thread Starter raf58

    (@raf58)

    hello Anticosti
    thanks for your reply
    but Russian language button is already “Русский”, as you may see on my website link

    maybe I was not clear, but what I want to do is to get the “russian” button on french pages
    and “french” button on russian pages

    is it possible ?

    Anticosti

    (@anticosti)

    @raf58
    Here’s an example for the CSS to hide the current French language button:

    html[lang="fr-FR"] body.language-fr ul.wpm-language-switcher li.item-language-fr.active {
    display:none;
    visibility:hidden;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.