Viewing 8 posts - 61 through 68 (of 68 total)
  • Author
    Posts
  • #505731

    Hi,

    Already tried that and it’s breaking the website.

    How can I specify that I want this code to be implemented in the top bar?

    Tim,

    #506236

    Hey!

    Please add this in the functions.php file to remove the default flags:

    add_action('after_setup_theme','avia_remove_main_menu_flags');
    function avia_remove_main_menu_flags(){
            remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }

    After that, add this code to place the selector in the top bar:

    add_action('avia_meta_header', 'add_custom_content_to_header');
    function add_custom_content_to_header() {
    	do_action('icl_language_selector');
    }

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Regards,
    Ismael

    #506332

    Hi Ismael,

    You are correct that this thread is drifting out of topic but it’s only because no one has giving me a working solution.

    Can you fix this flag disappearing issue? Please try and click on the french flag to see what happen.

    This will be my last thread as I will have to hire someone to fix this problem asap if no working solution is provided.

    Thank you for your understanding,

    Regards,

    Tim,

    #506799

    Hey!

    We enable the default language switcher but it still doesn’t show the “Nederlands” flag or switcher when you go to the “Francais” language. Did you open a ticket in the WPML forum?

    Regards,
    Ismael

    #506870

    Hi Ismael,

    Yes I also opened a ticket with WPML. I really need this issue to be fixed asap. They are also working on finding a solution.

    Did you put the language switcher in the menu? Could you please let me know what modifications you did?

    Many thanks,

    Tim,

    • This reply was modified 9 years, 2 months ago by timpro.
    #507457

    Hey!

    We added the code we previously suggested in the functions.php file and then enable the default language switcher in the WPML panel. . https://kriesi.at/support/topic/menu-over-logo-4/page/3/#post-506236

    Regards,
    Ismael

    #507578

    Thank you Ismael. I am going to try and continue resolving this issue with WPML because they believe it’s a plugin issue and not a theme issue.

    Thanks,

    #507593

    Hey!

    Alright. Please open a new thread once you get this resolved. We would like to know the cause of the issue as well. Thank you.

    EDIT: We removed the link.

    Best regards,
    Ismael

Viewing 8 posts - 61 through 68 (of 68 total)
  • The topic ‘Menu over logo’ is closed to new replies.