Tagged: mega menu, mobile menu
-
AuthorPosts
-
April 27, 2015 at 5:20 pm #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
NancyApril 27, 2015 at 9:28 pm #435642Hi 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,
ElliottApril 27, 2015 at 10:21 pm #435686Hi 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
NancyApril 28, 2015 at 6:30 pm #436279Hey!
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,
YigitApril 29, 2015 at 11:16 am #436582Hey Yigit
Brilliant! You win the Kriesi guru prize of the day!
thanks so much – just what I needed.
NancyApril 29, 2015 at 2:36 pm #436692 -
AuthorPosts
- The topic ‘mega menu mobile’ is closed to new replies.