WooCommerce includes a convenient feature: the product ordering dropdown on the product archive page. If your store has very few products, or even displays everything on a single page, that sorting dropdown can become unnecessary clutter and make the interface more complex than it needs to be. Let us look at how to remove it.
It is actually very simple. Just add the following line of code to the theme’s functions.php file.
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
Sometimes we may not want to delete the dropdown entirely. We may only want to move it to another position. The code responsible for the ordering dropdown is in the following file:
/wp-content/plugins/woocommerce/template/loops/ordering.php
Just copy it to:
/wp-content/themes/yourtheme/woocommerce/loops/ordering.php
This prevents your customization from being overwritten when the WooCommerce plugin is upgraded.
