• Resolved Frank.s

    (@franks)


    Hi,

    So I’ve got the plugin working now, but I have one question.

    I am only using two languages, English and Chinese. When I tell the plugin to put the language switcher in the menu, it puts both, which doesn’t fit and looks silly (why have English when the page is already in English).

    Can I put just one? Or can I manually create a menu item that has a command to switch the language?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    It’s a matter a choice. Add this line in style.css of your theme:
    .current-lang {display: none;}

    Thread Starter Frank.s

    (@franks)

    Hi and thanks for replying. The above doesn’t work however, both languages remain in the menu ??

    I also tried putting it in the Custom CSS part of my theme’s settings. No luck.

    Plugin Author Chouby

    (@chouby)

    Sorry I did not pay attention that you put the language switcher in the menu and not in the widget. So try this:
    .menu li.current-lang {display: none;}

    Unfortunately, CSS rules are also very theme dependant…

    Plugin Author Chouby

    (@chouby)

    Polylang 0.7 comes now with an option to this…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Polylang] Only have "other" language in menu?’ is closed to new replies.