function sooruz_remove_sidebar(){ if( is_checkout() || is_cart() || is_product() ){ remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); } } add_action('woocommerce_before_main_content', 'sooruz_remove_sidebar' );?> remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); ?> // Remove the result count from WooCommerce remove_action( 'woocommerce_before_shop_loop' , 'woocommerce_result_count', 20 ); ?>