Support » Plugin: Polylang » Feature request: extra language switcher class

  • Hi Chouby,

    I have a request: Could you make it happen that the language switcher adds a third class to each language link next to ‘lang-item lang-item-(n)’ which would say more about the actual language? Something like the language short slug so the list items would be something like:

    <li class="lang-item lang-item-(n) fr">

    I need this for custom language flags on a multi-site installation where it is not possible to create the dir /wp-content/polylang/ to store custom flags because that would impact all other sites that use Polylang on the same network… My only solution seems to be to use CSS to hide the plugins IMG tags and then set the ones from my theme as background image to the A tag.

    Hope I explained this clear enough 🙂

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


    Hi RavanH!

    I will add a new class in the next version (does not cost much), but I would prefer call it (for example) lang-fr.

    Sure! As long as it’s there! Great 🙂

    Plugin Author Chouby


    Well something like lang-item-fr should be more consistent.
    Now in the development version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feature request: extra language switcher class’ is closed to new replies.