Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #308824

    Hello! Can we deactivate the Mega Menu plugin. We have a plugin which conflicts with mega menu

    #308826

    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

    #308847

    Hi, we added the code snippets, its not working….

    #308854

    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

    #308856

    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…

    #309123

    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

    #309228

    Unfortunately this snippet isn´t working too…

    #310398

    Hi! Is there a workaround for us?

    #310487

    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

    #310490

    ok thank you….

    #310525

    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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.