Dropdown Menus
-
Hello,
I’m having issues changing the nav menu’s drop down menu’s animation and delay (among other settings/values). I found what I thought was setting the defaults for these in the path/library/js folder (files: drop-downs.js and nav-bar.js) but altering the code seemed to have no effect. I wanted to alter some of these defaults for the website I’m designing. Any help would be greatly appreciated. I love the theme so far!
Phil
-
I found what I thought was setting the defaults for these in the path/library/js folder (files: drop-downs.js and nav-bar.js) but altering the code seemed to have no effect.
You should not change any parent theme files, that includes drop-downs.js and nav-bar.js. If you must know, drop-downs.min.js is used in the theme.
You could disable drop down effect altogether and roll your own but I don’t think that’s a good idea.
Thank you for the quick reply! I understand the risks with changing parent theme files. If you update the theme and I upgrade to the newest version of it, my files (and changes) will be replaced. But if I still wanted to alter the delay on mouse over, what would the exact line in drop-down.min.js be that I need to alter?
Side note: how can I change/alter parent theme files like how one alters css in the child theme? I didn’t think this was possible (or easy).
Side note: how can I change/alter parent theme files like how one alters css in the child theme? I didn’t think this was possible (or easy).
It’s more than easy. Just install child theme ( http://themehybrid.com/themes/path-child ) and make modifications in child theme
style.css.What comes to drop down effect you’re on your own. I can’t teach you to do things in the wrong way.
Right way is to dequeue original script and roll your own in your child theme.
I understand. Considering that I am still new to most of this, I may just leave it as is for now. It was more of a personal preference to change the delay than fixing something that isn’t broke. Thanks again!
I may just leave it as is for now
Well, that’s really the best choice anyway:)
The topic ‘Dropdown Menus’ is closed to new replies.
