-
AuthorPosts
-
August 25, 2014 at 2:25 pm #308824
Hello! Can we deactivate the Mega Menu plugin. We have a plugin which conflicts with mega menu
August 25, 2014 at 2:27 pm #308826Hey 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,
YigitAugust 25, 2014 at 3:22 pm #308847Hi, we added the code snippets, its not working….
August 25, 2014 at 3:43 pm #308854Hi!
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,
YigitAugust 25, 2014 at 3:59 pm #308856thanks this is working, but we need a workaround for our child-theme file… we want not to change this everytime we update the theme…
August 26, 2014 at 5:59 am #309123Hey!
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!
IsmaelAugust 26, 2014 at 10:01 am #309228Unfortunately this snippet isn´t working too…
August 28, 2014 at 1:50 pm #310398Hi! Is there a workaround for us?
August 28, 2014 at 3:58 pm #310487Hi!
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,
YigitAugust 28, 2014 at 4:04 pm #310490ok thank you….
August 28, 2014 at 4:43 pm #310525Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
