WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Feature request: extra language switcher class (4 posts)

  1. RavanH
    Member
    Posted 1 year 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 :)

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  4. Chouby
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.