Site logo

Archived topic

Need .JS URLs for Hamburger Menu and Search Icon

5 replies · Started by Carl on October 18, 2022

Viewing posts 1–6 of 6

Hello!

On our site (in private) is using Delayed JS for better site speed.

Could you please give me the .JS URLs for Search Icon and Hamburger Menu functionality so that I can exclude them from being delayed and work properly.

Thank you!

Hi there,

URLs for the two scripts are:

/wp-content/themes/generatepress/assets/js/menu.min.js
/wp-content/themes/generatepress/assets/js/navigation-search.min.js

Hi David!

Yes this worked for Mobile!

However, clicking the search icon still doesn't function on DESKTOP so may that be another URL? on this URL: (see private note)

Try adding this one as well: /wp-content/themes/generatepress/assets/js/navigation-search.js

Hi Ying!

No, that was not the one, DESKTOP search icon still not functioning. To test, see domain in private:

Hi Carl,

Those should be the ones. The one provided by Ying is this: https://github.com/tomusborne/generatepress/blob/adfe090929b0515cdf894f4c6b722cfe8c0790dc/assets/js/navigation-search.js

This specific line https://github.com/tomusborne/generatepress/blob/adfe090929b0515cdf894f4c6b722cfe8c0790dc/assets/js/navigation-search.js#:~:text=contains(%20%27-,nav%2Dsearch%2Dactive%27,-)%20)%20%7B checks if the form is toggle or not, and adds or removes class nav-search-active depending on that.

It's not adding this class on your site.

Are you adding the full file path? Can you try doing so?

This archived topic is closed to new replies.