Hi. How can we help?

Product Filter doesn't show the widget in the search page

The search page is not a standard section of the theme. Many developers often customize this page in their theme making the use of the filters by the plugin Ajax Product Filter difficult. It can happen, for example, that the product count on this page will not be correct although the filter works properly. E.g. it shows there are 15 products but only 5 display. Sometimes, it could not even work at all. 

However, although we do not support this features, and do not provide support in this regard, many users regularly use the filters on the search page. If you want to make a test then you just go and put this code in the functions.php file of your theme:

add_filter( 'yith_wcan_is_search', '__return_false' );

If doing a search combined with two or more words the filters disappear, please add this additional code:

add_filter( 'yith_wcan_unfiltered_args', 'yith_wcan_unfiltered_args' );

if( ! function_exists( 'yith_wcan_unfiltered_args' ) ){
function yith_wcan_unfiltered_args( $unfiltered_args ){
if( ! empty( $_GET['s'] ) ){
if( isset( $unfiltered_args['s'] ) ){
return $unfiltered_args;
Was this article helpful?
5 out of 23 found this helpful

Back to Help Center >