Table of Contents
Are you tired of the default product sorting options in your WooCommerce store? Do you want to customize your product listings to better suit your business needs? If so, you may want to consider removing the product sorting functionality in WooCommerce.
In this article, we will provide you with a step-by-step guide on how to remove product sorting in WooCommerce. We will also discuss alternative options for customizing the product sorting functionality, including examples of code snippets and plugins that can be used to remove product sorting.
Removing Product Sorting in WooCommerce By Plugins
Removing Product Sorting in WooCommerce by "Code Snippets" Plugin
- Log in to your WordPress dashboard and go to “Plugins”.
- Search for the “Code Snippets” plugin and install and activate it.
- Once activated, go to “Snippets” and click “Add New”.
- Enter a name for the snippet (e.g. “Remove Product Sorting”).
- Paste the following code into the “Code” box:
add_action( 'woocommerce_before_shop_loop', 'remove_woocommerce_catalog_ordering', 1 );
function remove_woocommerce_catalog_ordering() {
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
}
6. Click “Save Changes and Activate”.
Congratulations, you have now successfully removed the product sorting functionality in your WooCommerce store!
Removing Product Sorting in WooCommerce by "Disable Product Order for WooCommerce" Plugin
To remove product sorting using the “Disable Product Order for WooCommerce” plugin, follow these simple steps:
- Log in to your WordPress dashboard and go to “Plugins”.
- Click “Add New” and search for the “Disable Product Order for WooCommerce” plugin.
- Install and activate the plugin.
- Once activated, go to “WooCommerce” and click “Settings”.
- Go to the “Products” tab and select “Display”.
- Under “Default Product Sorting”, select “Default sorting (custom ordering + name)”.
- Click “Save Changes”.
Removing Product Sorting in WooCommerce by "WooCommerce Sorting" Plugin
Here’s how to remove product sorting in WooCommerce using the “WooCommerce Sorting” plugin:
- Install and activate the “WooCommerce Sorting” plugin.
- Go to “WooCommerce” > “Settings” > “Products”.
- Scroll down to the “Sorting” section and uncheck all the boxes for the sorting options you want to remove.
- Click “Save changes” to save your settings.
Removing Product Sorting in WooCommerce by CSS Code
To remove the product sorting dropdown menu from the WooCommerce store, you will need to add a CSS code snippet to your theme’s stylesheet. Here are the steps to follow:
- Log in to your WordPress dashboard and go to “Appearance” -> “Customize”.
- Click on “Additional CSS” on the left-hand side of the customization screen.
- In the “Additional CSS” box, paste the following code:
.woocommerce-ordering {
display: none !important;
}
Click “Publish” to save your changes.
This code snippet will remove the product sorting dropdown menu from your WooCommerce store. If you want to display the sorting options again in the future, simply remove the code snippet from your theme’s stylesheet.
Removing product sorting in WooCommerce can be a great way to customize your product listings and better suit your business needs. Whether you choose to use a plugin, modify code snippets, or hire a developer, there are many options available to help you remove product sorting in WooCommerce. We hope this article has been helpful in guiding you through the process of removing product sorting in WooCommerce.
Sources/More Info:
https://wordpress.org/support/topic/removing-sort-by-on-woocommerce-shop-page/