Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey,

    You can try something like this:

    add_action( 'init', 'jk_remove_sorting' );
    function jk_remove_sorting() {
    remove_action( 'woocommerce_after_shop_loop',			'storefront_sorting_wrapper',				9 );
    remove_action( 'woocommerce_after_shop_loop', 			'woocommerce_catalog_ordering', 			10 );
    remove_action( 'woocommerce_after_shop_loop', 			'woocommerce_result_count', 				20 );
    remove_action( 'woocommerce_after_shop_loop', 			'woocommerce_pagination', 					30 );
    remove_action( 'woocommerce_after_shop_loop',			'storefront_sorting_wrapper_close',			31 );
    }

    I recommend adding this snippet to our Theme Customisations plugin: https://github.com/woothemes/theme-customisations

    Thanks

    Thread Starter mleatherman

    (@mleatherman)

    Where do I add this code? At the end of all the code that’s there…. Thanks

    You add it to this file: theme-customisations/custom/functions.php

    Then upload and activate the plugin.

    Thread Starter mleatherman

    (@mleatherman)

    I did try your code, but it did not remove one of the Default Sorting dropdown boxes. And I did place the code in this file: theme-customisations/custom/functions.php

    Any suggestions? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deli: Remove Default Sorting dropdown’ is closed to new replies.