PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Limiting pages not work on the search result page

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello! Please help me to configure limiting filter display.

I`m interested to display filter only on the search result page and all the categories pages. Im using latest HUSKY filter version and Elementor.

The reason of disabling filter from all other pages is to increase WP Rocket performance, because I need to ignore HUSKY filter at all on WP Rocket settings, causing a lot of errors when JS and/or CSS is disabled or delayed. So for me the best option is to cut the filter out from pages where it is not used. (So maybe you can also suggest to me some tricks or settings how I can reduce HUSKY impact on my core veb vitals score). Thank you!

 

Here is some link examples, 1 - category page (all of them starting with /kategorie/) and 2 - the search result page (limiting is disabled on all the pages for now):

Spoiler

https://example.test/kategorie/alle-produkte/

I have used "https://example.test/kategorie/" - and it seems to work OK

https://example.test/?s=
I have used "https://example.test/?s=" - and it wont work, just showing me "shortcode" as the result

 

Hello

How did you disable the plugin? Did you use this option? - https://share.pluginus.net/image/i20250211114345.png

If you disabled the display on the main page then of course the plugin will be disabled on this page - https://example.test/?s=

Yes, I'm using this option. And yes seems after disabling the homepage, on the search page plugin is disabled as well. Is that possible to somehow enable plugin only on the search page and category pages? Thank you!

Hello

Unfortunately these are the same pages https://example.test/?s=  and  https://example.test/

To change this behavior you need to customize the code.

An example:

in file - \woocommerce-products-filter\index.php - add  code - https://share.pluginus.net/image/i20250212112324.png

So after I will made this change and use

https://example.test/kategorie/alle-produkte/

https://example.test/?s=

everything should work as expected?

Yes! It seems to work! Thank you very much!

Hello

Great! Welcome;)