-
AuthorPosts
-
September 18, 2015 at 6:36 pm #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,
September 21, 2015 at 7:42 am #506236Hey!
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,
IsmaelSeptember 21, 2015 at 10:59 am #506332Hi 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,
September 22, 2015 at 7:28 am #506799Hey!
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,
IsmaelSeptember 22, 2015 at 10:27 am #506870Hi 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, 3 months ago by timpro.
September 23, 2015 at 5:13 am #507457Hey!
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,
IsmaelSeptember 23, 2015 at 10:12 am #507578Thank 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,
September 23, 2015 at 10:46 am #507593 -
AuthorPosts
- The topic ‘Menu over logo’ is closed to new replies.