How to display language switcher as dropdown in Polylang?

Steve picture Steve · Jun 30, 2017 · Viewed 11.8k times · Source

I don't have display as dropdown in Appereance -> Menu -> Language switcher. How can i solve it?

Here is an image

Here is an image

Any help will be appreciated...

Answer

NJENGAH picture NJENGAH · Jul 7, 2018

You should alternatively use the PHP function to display it, try this

<?php pll_the_languages( array( 'dropdown' => 1 ) ); ?>

The documentation is here - https://polylang.pro/doc/function-reference/#pll_the_languages