• savassigames

    (@savassigames)


    Hello, YITH ppl! How are you today?

    So, my problem is: While using the (awesome) YITH ajax filters plugin, I was able to do everything I wanted and troubleshoot most of my issues. The remaining one is:

    First applied filter works just fine, but when applying the second one to my search, no products show up. A simple refresh on the page makes them appear, also after that, they all work as intended while adding more of them.

    Is there a way to solve this or at least force the page to refresh after clicking on a new filter?

    You can check my page at https://dimgrey-turtle-842822.hostingersite.com/produtos/, yith filters is the last block on the left column. Website is built using Elementor+woocommerce, if that makes any difference.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hello there,

    I’m good and you? ??

    Please add following code in the file functions.php of your theme and let us know if the problem persists.

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
    function yith_wcan_content_selector( $selector ){
    $selector = '.hw-middle-content';
    return $selector;
    }
    add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' );
    }
    Thread Starter savassigames

    (@savassigames)

    Good morning, Alessio! Thank you for your fast reply!

    Applied those lines to my functions.php, also cleaned my entire host and browser cache to make sure it wasn’t an issue, but the problem still continues. Actually, now even when applying only one filter I’m having to refresh the page to see it working.

    Interesting thing is my ‘used product’ (the blue tag) shows up on the grid as if the products were all there, so I believe the plugin IS doing it’s job.

    Thread Starter savassigames

    (@savassigames)

    Something else happened while toying around with your code: When I open the dev console while the search is open, the results appear as they should. Maybe it’s the responsiviness of the page reloading the content by the time the page shrinks?

    Edit: Even just by resizing the browser window is enough to make them appear

    Edit 2: here’s some tested situations: https://streamable.com/tlduh8

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hello there,

    I can no longer see filters in the page, coould you enable them again?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.