Tagged: devin-docs
Hello,
Need to do this in functions.php
add_theme_support(‘avia_mega_menu’);
To this:
//add_theme_support(‘avia_mega_menu’);
how can i do this in child theme functions, as everytime i update i am losing this change.
Hi hamzahmauzam!
Thank you for using the theme!
Please add this on the child theme’s functions.php:
function ava_css_dashboard() {
echo '<style type="text/css"> p.description.description-wide.avia_checkbox.avia_mega_menu {display: none; !important} </style>';
}
add_action('admin_head', 'ava_css_dashboard');
Regards,
Ismael
Hello,
I want to disable mega meny only for top menu, but want to use it in main menu, please help me,
Reason i want to disable is the NAV MENU Roles plugin doent work with Mega Menu
the code given by u just hides mega menu,
i want to disable it, because its clashing with one plugin
When i do this it works
add_theme_support(‘avia_mega_menu’);
To this:
//add_theme_support(‘avia_mega_menu’);
But how to do this in the child theme.
Also can i disable mega menu for the top menu only?
Disable means disable not hide.
Hi!
Try with this (child functions.php):
function disable_mega_menu() {
remove_theme_support('avia_mega_menu');
}
add_action( 'init', 'disable_mega_menu');
And no, you can not disable it for only a menu if you do this way, it will be disabled site wide.
Regards,
Josue