I don't have display as dropdown in Appereance -> Menu -> Language switcher. How can i solve it?
Here is an image
Any help will be appreciated...
With Polylang you have the possibility to add our widget Language switcher, in the Appearance tab > Widgets sub-tab, by first adding a block “Legacy Widget” in which you then select the Polylang Language Switcher. This option works with Polylang Pro for existing widgets only, it is no longer possible to add it.
In appearance->menus, go in screen options on top right of you screen and check the “Language switcher” checkbox. You then should have a new metabox which allows to add a language switcher just as you add another menu item. Thanks for contributing an answer to Stack Overflow!
To do so simply search for “Language Switcher” in the search form of the block editor in your Appearance tab > Widgets sub-tab. Click on the icon of the block, it will add it to the main blocks list (central scroll zone) and open the block editor embedded view in witch you’ll find all the “Language Switcher” options.
The purpose of the language switcher is to create links to the translations of your current page. By default, if the current page is untranslated, the language switcher links to the front page in the corresponding language.
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
In appearance->menus, go in screen options on top right of you screen and check the “Language switcher” checkbox. You then should have a new metabox which allows to add a language switcher just as you add another menu item.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With