• Resolved gsambiase81

    (@gsambiase81)


    hello to you, I have a problem with the filter.
    If I click on one of the six options, not all of them open correctly. If instead I open the section using “Open the link in another tab” the filter works without problem.

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

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

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    I checked and seems a conflict with the way you configured the page.

    Could you try to add the following code in the functions.php of your active theme?

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

    Check if now it loads the right products.

    I’m looking forward your response.

    Have a good day.

    Thread Starter gsambiase81

    (@gsambiase81)

    I added this line of code, but still it doesn’t work. can you point to another solution or line of code.
    the filter by information, I don’t know if it’s useful, is based on the CATEGORY of the product

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    I checked your site but seems the code is not applied. The selector doesn’t change.

    Could you remove the previous code and add the following code

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

    Please, try it and let me know.

    Have a good day.

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hi there,
    We wanted to inform you we will change the status of this topic to resolved as there has not been a reply from you in some time. However, please, feel free to create a new topic for any further assistance you may require.
    Best regards!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘the filter is not working properly’ is closed to new replies.