Woocommerce Page Default Sorting Drop-Down
5 March, 2021 by
Woocommerce Page Default Sorting Drop-Down
Administrator
| No comments yet


Removing the WooCommerce Shop Page Default Sorting Drop-Down

To start, remember to always use a child theme when customizing your WooCommerce site or any WordPress site for that matter.  The use of child themes ensures that your customizations are saved when you upgrade to the latest version of your specific theme.  If you’re not sure how to create a child theme then check out the following tutorials…

Safely Customize your Site with Child Themes

Customizing the WooCommerce Checkout Page

Having said that, to remove the default sorting drop-down from the shop and product category pages of your WooCommerce site do the following…

In the WordPress admin go to Appearance > Editor > click on “Theme Functions” (functions.php) > copy and paste the code below into the functions.php file between the PHP open and close tags > click “Update File” > go out to your site and click Ctrl + F5 to refresh the page and the default sorting drop down will go away

Copy and paste the following snippet…

remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

Now take a couple minutes to watch our tutorial video below.  It will show you exactly how toRemove the Default Sort Order Drop-Down found on the WooCommerce Shop and Product Category pages…

Sign in to leave a comment