
gabriel.pribeagu(@gabrielpribeagu)
76 Posts
Customers
Quote from gabriel.pribeagu on April 27, 2021, 17:42
Hello,
If the user is serching for some keyords from products titles, what should I do to remove the custom woof filters sets from left sidebar that I use for different categories?
See pictures:
Bellow is normal situation when user navigate via menu
https://clip2net.com/s/4bQQykR
https://clip2net.com/s/4bQQCLQ
But if instead it is making a search
https://clip2net.com/s/4bQQorz
https://clip2net.com/s/4bQQs9Q
I have that left space without widgets
Normally that left bar should be hidden in this situations.
What should i do?
Hello,
If the user is serching for some keyords from products titles, what should I do to remove the custom woof filters sets from left sidebar that I use for different categories?
See pictures:
Bellow is normal situation when user navigate via menu
https://clip2net.com/s/4bQQykR
https://clip2net.com/s/4bQQCLQ
But if instead it is making a search
https://clip2net.com/s/4bQQorz
https://clip2net.com/s/4bQQs9Q
I have that left space without widgets
Normally that left bar should be hidden in this situations.
What should i do?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 28, 2021, 12:10
Hello
Unfortunately my plugin does not control the display of widgets
it depends on your current theme
My test - https://c2n.me/4bRp4yx
Hello
Unfortunately my plugin does not control the display of widgets
it depends on your current theme
My test - https://c2n.me/4bRp4yx

gabriel.pribeagu(@gabrielpribeagu)
76 PostsTopic Author
Customers
Quote from gabriel.pribeagu on April 28, 2021, 12:15
But how do people manage this kind of situation?
I suppose a lot of them have your filter in left or right side bar. What is happening when you search for something ? :)
i hope I`m not the first that see this problem.
But how do people manage this kind of situation?
I suppose a lot of them have your filter in left or right side bar. What is happening when you search for something ? :)
i hope I`m not the first that see this problem.

gabriel.pribeagu(@gabrielpribeagu)
76 PostsTopic Author
Customers
Quote from gabriel.pribeagu on April 28, 2021, 12:29
I have an idea.
I can show only a filter with "in stock" checkbox element.
So, can you help me define a widget logic for this to show when you do a random search?
https://clip2net.com/s/4bRqHg8
I have an idea.
I can show only a filter with"in stock" checkbox element.
So, can you help me define a widget logic for this to show when you do a random search?
https://clip2net.com/s/4bRqHg8

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 29, 2021, 10:31
Hello
Try to activate this extension - https://c2n.me/4bS8nrh.png - and do a test
OR
Read this please - https://developer.wordpress.org/reference/functions/is_search/
Hello
Try to activate this extension - https://c2n.me/4bS8nrh.png - and do a test
OR
Read this please - https://developer.wordpress.org/reference/functions/is_search/