Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1300808

    Language switcher not appearing in top bar although the code is there.

    GETTING THIS PROMPT:
    One more step before you can translate on Enfold
    You need to enable WPML’s Translation Editor, to translate conveniently.

    HOWEVER, AFTER CLICKING BUTTON:
    This action is not allowed

    This is a canadian site – EN/FR is critical. Please help!

    #1300809

    NOTE: I added the switcher to the main menu, which DOES work, but we want it in the top bar.

    #1301134

    Hi,

    Thank you for the inquiry.

    It is possible to add the language switcher within the top bar but you have to create a secondary menu or insert it using the following function.

    // Render the default language switcher (activate header meta)
    function ava_icl_language_selector(){
    	do_action('icl_language_selector');
    }
    add_action('avia_meta_header', 'ava_icl_language_selector');
    
    add_filter( 'avf_execute_avia_meta_header', '__return_true', 10, 1 );

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.