• Hello,
    I’m having a problem with the plugins in a client website.
    After you are in the shop page, if you select a category filter, it looks like it is not loading the CSS.
    Because the page size changes, the colors change and also the fonts.

    I show you a short video: just click here to see it.

    The website is using the Hello Elementor theme and is made with Elementor.
    I have inserted the filter with the relative Elementor’s element, so I don’t have many customizing options…

    I’m looking forward to an answer. I hope you can help me.

    Regards,
    Robertino

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well ??

    With Elementor, it’s not possible to add the selector parameter,

    Please try to add the following code in the functions.php of your active theme

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

    Please, try it and let me know.

    Have a good day.

    Thread Starter assistenzawp

    (@assistenzawp)

    Hello,
    thank you for your answer.

    Now it’s better but there’s another little problem.

    When I select a filter, the product appears twice, on top of the page (where they shouldn’t appear) and inside the column (that is the right place).
    If I reload the page, everything works.

    I show you in a video.

    Regards

    Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,
    try to change the code provided with this:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
    
     function yith_wcan_content_selector( $selector ){
     
       $selector = '.products';
    
       return $selector;
    
     }     
    
     add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector', 22,1 ); 
    
    }
    Thread Starter assistenzawp

    (@assistenzawp)

    Hello Giuseppe,
    I appreciate your help, but still the same issue. ??

    I also tried to change the ID of the section but nothing changed.

    Regards

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    please replace previous code with the following one:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
    
        function yith_wcan_content_selector( $selector ){
    
                 $selector = '.elementor-element-7e410ec';
    
                 return $selector;
    
        }     
    
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' ); 
    
    }

    Let us know if the problem persists.

    Thread Starter assistenzawp

    (@assistenzawp)

    Hello Alessio,
    thank you for your answer.

    Now something is changed, but unlucky with this code all the products disappear when you select something.

    I have made a video to explain better and you can see it here.

    Now I undid the edit because the customers can’t buy in this way.

    Best Regards

    Thread Starter assistenzawp

    (@assistenzawp)

    Hello,
    I wanna add that from the mobile version there is still the problem of the different colors..
    so it looks like is still not loading the CSS in the mobile version.

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Layout problem (css?) with category filters’ is closed to new replies.