-
AuthorPosts
-
October 11, 2016 at 9:17 pm #698062
Hi,
I had to deactivate all plugins, since WooCommerce Multilingual is not compatible with the new WPML version and locked me out of the site.
After activating the plugins again, there are 2 problems:
– I have the flags again in the menu (I don’t want them either in the menu nor next to the respective language).
– The mega menus are cut (see: Products, Methodology, My Skin, Rituals)Can you please advise how to fix this.
Thank you,
JuliaOctober 14, 2016 at 6:53 am #698981Hey Yoolia!
Thank you for using Enfold.
I tried to login but the password for the username is incorrect. Please check it. Or add this in the functions.php file to disable the theme’s language selector.
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); }
Regards,
IsmaelOctober 14, 2016 at 8:20 am #699008Hey Ismael,
thank you for your message. This code is already in the functions.php file of the child theme. Does it have to go into the main theme file?
I have updated the password, it works now.
Any ideas about the cut menus?Thank you,
JuliaOctober 17, 2016 at 11:13 am #699880Hi Ismael,
I have tried to put the code in the Child theme functions.php file, in the Enfold functions.php and in the normal functions.php, but it does not work.
And the menus are still cut. Can you please take a look?
Thanks,
JuliaOctober 18, 2016 at 9:04 pm #700872Hi,
so which plugin exactly is causing this issue? are we allowed to deactivate all your plugins for testing purposes?
I noticed that you are using a caching plugin. Would you mind opening your plugin’s settings page and temporarily deactivate the caching of your site? Then please try to clear your browser cache and hard refresh the site (Hold CTRL + SHIFT + RELOAD) to see if that solves the issue.
Best regards,
AndyOctober 19, 2016 at 11:59 am #701183Hi Andy,
there was a popup form that was causing the issues with the cut menus. The only issue remaining are the appearing flags in the header.
The caching plugin is deactivated at the moment.
Thank you,
Julia
October 21, 2016 at 12:25 pm #702329Hi,
use this code inside Quick CSS field:
li.av-language-switch-item { display: none; }
Best regards,
AndyOctober 21, 2016 at 2:56 pm #702434Hi Andy,
thanks a lot, it worked!!Have a nice weekend,
Julia -
AuthorPosts
- The topic ‘Cut mega menus & flags in the language switcher’ is closed to new replies.