Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Andrea Grillo

    (@agengineering)

    Hi there,

    thanks for contacting us. The issue seems to be related to the page structure. To fix it try to add the PHP code below at the end of functions.php file of your theme:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
        function yith_wcan_content_selector( $selector ){
            $selector = '.elementor-location-archive.product';
            return $selector;
        }
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' );
    } 

    for the second issue, this is normal because you’re in a category page so this filters is enabled by default.
    We can try to change it via code, you should use this code in functions.php of your theme:

    if( ! function_exists( 'yith_wcan_shortcodes_script_args' ) ){
    	function yith_wcan_shortcodes_script_args( $params ){
    		if( isset( $params['base_url'] ) && function_exists( 'YITH_WCAN' ) && ! empty( YITH_WCAN()->frontend ) ){
    			$params['base_url'] = YITH_WCAN()->frontend->get_base_url( is_shop() || is_product_taxonomy() ? yit_get_woocommerce_layered_nav_link() : '' );
    		}
    		return $params;
    	}
    	add_filter( 'yith_wcan_shortcodes_script_args', 'yith_wcan_shortcodes_script_args' );
    }

    Please note: If you use a cache plugin and/or CDN don’t forget to clean it in order to apply the fix to your website.

    Thread Starter etherealgold

    (@etherealgold)

    Hello,

    The 2nd code appears to work great! The first one, however, has stopped it from duplicating the arrows — but has also completely removed all menu drop downs when selecting a filter.

    Photo

    Hello there,

    please, try this one:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
        function yith_wcan_content_selector( $selector ){
            $selector = '.elementor-location-archive.product .elementor-container.elementor-column-gap-default';
            return $selector;
        }
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' );
    }

    Let us know!

    Thread Starter etherealgold

    (@etherealgold)

    Hello,

    We attempted to use this code, but arrows are just duplicating again with the menu arrows when toggling between filters.

    Plugin Support Pablo Pérez

    (@pperez001)

    Hello,

    It seems the code wasn’t applied or it has been removed, if you can see this if you find in the developer console for the variable yith_wcan_shortcodes the value content is main and not the value we sent you in the code. Check this image it should be like this other image.

    Please check if you have cleared the cache after adding the code. Also, in case you haven’t removed the code and it placed in the correct theme folder, let’s increment the priority of this code in case your theme or other source has already changed the selector. Replace the code you applied with this one.

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
    
         function yith_wcan_content_selector( $selector ){
    
                  $selector = '.elementor-location-archive.product .elementor-container.elementor-column-gap-default';
    
                  return $selector;
    
         }     
    
         add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' ); 
    
    }

    Please try this and make sure the code changes the selector.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Menu Arrows Duplicating / Selecting Multiple Categories’ is closed to new replies.