Archived topic
Whitelist GP JS files from being minified
3 replies · Started by Matthew on February 24, 2022
Hi
I am having issues with navigation search not working due to WP Rocket.
I was going to whitelist all GP javascript files from being minifed as I assume this is the issue.
How can I do this?
I tried:
/wp-content/plugins/gp-premium/(.*).js
But this did not seem to work. Are the files located somewhere else?
Hi there,
the navigation search has its own script in the Theme:
/wp-content/themes/generatepress/assets/js/navigation-search.min.js
Hmm whitelisting this did not fix the issue.
Maybe some CSS is being minified that could effect this?
Now the search icon changes to a cross but the search field does not appear which makes me think its a CSS issue.
Is there any specific CSS we should whitelist in relation to this?
Hi Matthew,
Yes, the CSS for nav-search-active is missing.
Can you try disabling ALL active features of WP Rocket? To have a basis of what's fully working.
You then enable them one by one, checking the front-end everytime you activate a feature so we can single out what specifically causes the break.