Hi,
i’m using the polylang plugin for sit translation. Now are the flags are in the main menu, is it possible to give them into the footer or in the main header? So that the flags on mobiles are not in the menu.
Thank you for helping!
Hey Stefan,
Please see this documentation on adding the flags anywhere on your site. One solution is to create a header widget area and using the PolyLang widget.
Another solution is adding this code to the end of your functions.php file in Appearance > Editor:
function polylang_shortcode() {
ob_start();
pll_the_languages(array('show_flags'=>1,'show_names'=>0));
$flags = ob_get_clean();
return $flags;
}
add_shortcode( 'polylang', 'polylang_shortcode' );
and then put the shortcode [polylang] to display the flags.
Best regards,
Mike