• Resolved oguido

    (@oguido)


    Hello, how can I make disappear the currently selected language flag please?

    Thank you very much.

    EDIT: I found a way. I’ve put in my CSS:
    .prisna-gwt-flags-container:lang(en) .prisna-gwt-language-en {display:none;}

    Thanks anyway!

    • This topic was modified 4 years, 1 month ago by oguido.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter oguido

    (@oguido)

    .prisna-gwt-flags-container:lang(en) .prisna-gwt-language-en {display:none;}

    Plugin Author Prisna

    (@prisna)

    Greetings,

    As you may or may not know, the core of the plugin is made by Google. So we can’t really change the way it works, only Google can.

    When a language is selected, the main HTML tag of the page gets the lang attribute set. So you’ll need to use that to build the CSS selector. Let’s say you want to hide the Spanish flag when the Spanish language is selected, the CSS selector will be:

    html[lang='es'] .prisna-gwt-language-es

    Regards

    Thread Starter oguido

    (@oguido)

    Thanks a lot 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Currently selected language flag CSS’ is closed to new replies.