Feature request: extra language switcher class
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 🙂
- The topic ‘Feature request: extra language switcher class’ is closed to new replies.