1

I want to add languages name instead of flags in polylang dropbox menu. Is there any way to do this?

JJJ
  • 32,902
  • 20
  • 89
  • 102
Hammad Ahmed
  • 60
  • 2
  • 9

1 Answers1

1

You can try to use pll_the_languages() function and play with the different arguments. For your requirements, you could do something like this:

<!-- outputs a dropdown list of languages names -->
<?php pll_the_languages( array( 'dropdown' => 1 ) ); ?>

UPDATE:

If you use Widget for Language Menu, you can set these options there. Just go to Dashboard > Appearance > Widgets, expand the "Language Switcher" widget that has been added on the Sidebar and select the appropriate options.

user8230352
  • 1,775
  • 1
  • 9
  • 13