Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #692566


    I am using the Polylang plugin and would like to add flags next to the social icons I have in the top left bar. Is it possible to ad a widget to do this?

    Thanks Elise:)


    Hey Elise!

    If you want to add flag icons and then link your site URL to it please create a header widget refer to this link

    Best regards,


    Hi – I already tried this but it ends up in the header area not in the meta area next to the social icons where I want the flag, please view here:

    Using the following css:

    #header .widget {

    left: 10%;
    padding-top: 6px;
    position: absolute;
    top: 0;
    transform: translate(-50%);
    z-index: 999;


    What am I doing wrong?



    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,


    I also tried to add the code:

      <?php pll_the_languages(‘show_flags’);?>

    Into the HEADER > EXTRA ELEMENTS > HEADER SECONDARY MENU > “Phone Number or small info text- AREA”

    The language switcher

    Se login info below:)




    Login credentials are not working for me. Can you please check them once again?



    Sorry it was .no not .com:)



    I added following code to Quick CSS

    #header_meta .container > li.lang-item {
        display: none;

    following code to functions.php file in Appearance > Editor

    function avia_polylang_flags(){
    	$output = pll_the_languages('show_names');
    	return $output;
    add_shortcode( 'av_flags', 'avia_polylang_flags' );

    and following shortcode into phone info field in Enfold theme options > Header > Extra Elements


    Please review your website now
    Best regards,


    Great fantastic – so how do I see a flag instead of language name on site (hiding the current languag flag)?

    Best Elise

    • This reply was modified 4 years, 7 months ago by  fetetyper.

    Hi Elise!

    Can you please contact plugin authors regarding that?
    Code is added using following


    So it should display the flags in fact.



    Sorry – absolutely:)

    Thank you so much – works like a charm!

    Great support:)




    You are welcome!
    For your information, you can take a look at Enfold documentation here –
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here –
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)


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

The topic ‘Adding a widget to the top bar’ is closed to new replies.