Feature request: extra language switcher class (4 posts)

  1. RavanH
    Posted 3 years ago #

    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 :)


  2. Chouby
    Plugin Author

    Posted 3 years ago #

    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.

  3. RavanH
    Posted 3 years ago #

    Sure! As long as it's there! Great :)

  4. Chouby
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.