• I try to add a polylang dropdown with flag by the following code (with and without ul tag) but it doesn’t work:

    <?php pll_the_languages( array( ‘dropdown’ => 1,’show_flags’ => 1,’show_names’ => 1 ) ); ?>

    How can I show dropdown with flag and name?
    Thanks and appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    It can’t work. The dropdown is displayed with the html tag <select>. This tag is not able to natively display images. Only text.

    Some JS libraries allow to display images in <select>. This is however out of the scope of our plugin for which we have decided not to use any JS library on front.

Viewing 1 replies (of 1 total)
  • The topic ‘Polylang dropdown with flag’ is closed to new replies.