Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #257511

    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.

    #257608

    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

    #258174

    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

    #258283

    @ismael,

    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.

    #258420

    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

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