WordPress.org

Ready to get started?Download WordPress

Forums

Path
Dropdown Menus (6 posts)

  1. AMSphil
    Member
    Posted 1 year ago #

    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

  2. Sami Keijonen
    Member
    Theme Author

    Posted 1 year ago #

    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.

  3. AMSphil
    Member
    Posted 1 year ago #

    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).

  4. Sami Keijonen
    Member
    Theme Author

    Posted 1 year ago #

    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.

  5. AMSphil
    Member
    Posted 1 year ago #

    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!

  6. Sami Keijonen
    Member
    Theme Author

    Posted 1 year ago #

    I may just leave it as is for now

    Well, that's really the best choice anyway:)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic