• Hello!

    I am using an accordion from an Elementor-based plugin on the pages with the YITH filter. It works well if no filter is selected, but as soon as a term has been selected and the new product selection appears, the accordion stops opening. However, as soon as I disable “show results using ajax”, the accordion works.

    The default Elementor tab/accordion widget doesn’t work at all when the filter is in ajax mode. According to the accordion plugin developer, none of Elementor’s javascript-dependent widgets work with YITH.

    Could you please help me get the accordion to work even if YITH is in ajax mode?

    Thank you

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    hope you are doing well! ??

    Please, try to add the Filters and the Product list in the same section, as you can see here. If possible, add to the parent element a CSS class that we can use.

    Once this is done, please, let us know and we will try to fix it.

    Have a nice day!

    .

    • This reply was modified 2 years, 1 month ago by Araca.
    Thread Starter aracaro

    (@aracaro)

    Hello again!

    Thank you for your response. I have now placed the Filters and the Product list in the same section. But I’m not sure how to “add a CSS class to the parent element”, as you asked.
    I did add .filter-accordion to the “Custom CSS” of that section where the filters and product list is. Is that correct or do you want me to do something else? In that case, please guide me.

    Thank you for your help!

    Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    yes, that’s perfect! ??

    Please, try to add this custom code in the functions.php of your theme:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){ 
    
        function yith_wcan_content_selector( $selector ){ 
    
                 $selector = '.filter-accordion'; 
    
                 return $selector; 
    
        }     
    
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' ); 
    
    }

    Let us know if that did the trick.

    Have a nice day!

    Thread Starter aracaro

    (@aracaro)

    Yes, it did, it works! ??
    Thank you so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Elementor Javascript widgets not working in ajax mode’ is closed to new replies.