How to Remove the “Default Sorting” Dropdown

If the WooCommerce product sorting feature (“default sort” drop-down list) wastes space, or you don’t need the Selectbox at all, you may want to remove it.

Some Related Posts:-

See also  Removing company name from WooCommerce checkout

This PHP solution is more concise than CSS. It doesn’t matter whether you code or not, you only need to copy/paste following code snippets into the theme’s functions.php.

add_action( 'wp', 'codeithub_remove_default_sorting_storefront' );
  
function codeithub_remove_default_sorting_storefront() {
  remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
}

Before:

Default Sorting Selectbox

After:

Remove Default Sorting

Leave a Reply