Hello! Can we deactivate the Mega Menu plugin. We have a plugin which conflicts with mega menu
Hey lewebat!
Please try adding following code to Functions.php file in Appearance > Editor
function disable_mega_menu() {
remove_theme_support('avia_mega_menu');
}
add_action( 'init', 'disable_mega_menu');
Best regards,
Yigit
Hi, we added the code snippets, its not working….
Hi!
Please go to find following line in Functions.php file
add_theme_support('avia_mega_menu');
and comment it out as following
//add_theme_support('avia_mega_menu');
Best regards,
Yigit
thanks this is working, but we need a workaround for our child-theme file… we want not to change this everytime we update the theme…
Hey!
Thank you for the upadte.
Please use this on the child theme’s functions.php:
add_action( 'after_setup_theme', 'remove_mega_menu', 11 );
function remove_mega_menu() {
remove_theme_support('avia_mega_menu');
}
Cheers!
Ismael
Unfortunately this snippet isn´t working too…
Hi! Is there a workaround for us?
Hi!
I believe it is not possible to remove a parent theme feature using a function in child theme functions.php file. I have asked our head of support Peter, let us wait to hear from him!
Regards,
Yigit
ok thank you….
Hey!
Actually it’s possible to load a modified version of functions.php with the child theme. Duplicate the code from the parent functions.php into your child theme functions.php, delete this line:
add_theme_support('avia_mega_menu');
and at the very bottom of the child theme functions.php add this code:
$avia_config['use_child_theme_functions_only'] = true;
Cheers!
Peter