Ajax Product Filter - If you use the Sort By Filter, it does not remove the standard WooCommerce Sort By on shop page

If you use the Sort By Filter, it does not remove the standard WooCommerce Sort By, on shop page, you can use this code in functions.php of your theme:


if( function_exists( 'YITH_WCAN' ) ){
add_action( 'init', 'yith_remove_flatsome_woocommerce_catalog_ordering', 20 );
if( ! function_exists( 'yith_remove_flatsome_woocommerce_catalog_ordering' ) ){
function yith_remove_flatsome_woocommerce_catalog_ordering(){
remove_action( 'flatsome_category_title_alt', 'woocommerce_catalog_ordering', 30);
}
}
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk