• Resolved James Hunt

    (@bonkerz)


    Hey, maybe I missed it, but is is possible to hide the current language in the language switcher?

    So, for a site with EN/FR/CN,
    on EN, it shows only FR/CN choices
    on FR, it shows EN/CN choices
    on CN, it shows EN/FR?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter James Hunt

    (@bonkerz)

    I found that you put language specific classes in body, so hid them based on that ??

    You can use the option https://goo.gl/whw2rL

    Thread Starter James Hunt

    (@bonkerz)

    No. That just disables the language completely. I don’t think you understand my question.

    Example; If I am on English version of site, why show me option in language switcher widget to to switch to English? I am already in English. Makes no sense. So the goals is to hide the CURRENT language in the switcher.

    I have done this with css at the moment for each language, example:

    .language-en {
    #mega-menu-main-nav {
    li.mega-menu-item-language-en {
    display:none !important;
    }
    }
    }
    • This reply was modified 7 years, 1 month ago by James Hunt.

    For active language menu item have the class “active-language”. You can hide it on css.

    Thread Starter James Hunt

    (@bonkerz)

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding current language in switcher?’ is closed to new replies.