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  How to Display all comment fields when a user is logged in

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 );


Default Sorting Selectbox


Remove Default Sorting

Leave a Reply

Your email address will not be published. Required fields are marked *