Site logo

Archived topic

Search not working with WP Rocket

5 replies · Started by Matthew on January 17, 2022

Viewing posts 1–6 of 6

Hi

WP Rocket is causing the search feature on my site not to work:
https://au.wowfreebies.com

Clicking the search icon in the navigation bar should open up the search box but its not working (works when logged in or with WP Rocket disabled).

Do you know what file from GP I need to whitelist to resolve this?

Thanks

Sorry I should have said I already found that thread but it didn’t solve the issue. 😞

Hi there,

might be worth checking with WP Rocket support as we see a lot of what works for one user doesn't for another, and this is probably because the various settings in WP Rocket and the various files being combined/minified/defferred etc.

No worries will do. I’m using the search that doesn’t appear until you click the search icon.

What files does this need? Just the main.min.js?

So I can let WP rocket know.

Also where is this file located? I’m not sure if actually supposed to specify the path.

This is the script GP uses:

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

And this is the one for the menu:

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

The issue could also be CSS related - but there are some pecularities there and i believe in WP Rocket you can specify a CSS class for exclusion. They should be able to advise on that.

This archived topic is closed to new replies.