• Hello I am trying to show language switcher in header via this function:

    add_action( 'et_header_top', 'add_my_account' );
    function add_my_account(){
    echo '<ul>';
    pll_the_languages( array( 'dropdown' => 1, 'show_flags' => 1,'show_names' => 0 ) );
    echo '</ul>';
    }

    but dropdown is not working. here is screen: https://ctrlv.cz/2xfD

    Next to it, there is language switcher placed in primary menu, but i want to have it outside from menu. Its only for testing purposes there

    Thanks for any idea how to fix it

    The page I need help with: [log in to see the link]

  • The topic ‘Dropdown does not work on my end’ is closed to new replies.