Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #435442

    HI kriesi gurus
    I ammended the js/avia.js file and the functions.php to allow for specific menus on the mobile, which is great. I was wondering:
    1. why is this not a feature in enfold?
    2. is it possible to put those codes in the js/avia.sj file in my child theme = I will lose those mobile menus if I upgrade Enfold in the future, right? I’d like to make it “permanent” on the site.
    3. Is there any problem/issue with using these monbile menus? My site also has a members login, so they will see other menus as well.

    thanks for your help
    Nancy

    #435642

    Hi Munford!

    1. We are looking into getting an option added in a future update.

    2. Unfortunately it is not available for child theme customization.

    3. I do not forsee any problems.

    Best regards,
    Elliott

    #435686

    Hi Elliot

    OK thanks – it is a very useful addition to the menus! What is the best way to deal with that sort of changes to the codes in the main theme when there are updates to Enfold? This one with the menus is pretty crucial to the functioning of the site…I changed the functions.php in the child theme.

    thanks for your advice
    Nancy

    #436279

    Hey!

    Please copy your modified avia.js file to your child theme inside JS folder and then add following code to Functions.php file of your child theme

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    Best regards,
    Yigit

    #436582

    Hey Yigit
    Brilliant! You win the Kriesi guru prize of the day!
    thanks so much – just what I needed.
    Nancy

    #436692

    Hey!

    Thank you Nancy for the prize! First of all, I would like to thank to Kriesi and my teammates.. ;D

    We are always happy to help, let us know if you have any other questions or issues :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘mega menu mobile’ is closed to new replies.