Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1020039


    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() {
    	$flags = ob_get_clean();
    	return $flags;
    add_shortcode( 'polylang', 'polylang_shortcode' );

    and then put the shortcode [polylang] to display the flags.

    Best regards,

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.