How to Enhance Your eCommerce Experience: Removing Product Sorting in WooCommerce

Learn how to remove the product sorting functionality in WooCommerce.

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

  1. Log in to your WordPress dashboard and go to “Plugins”.
  2. Search for the “Code Snippets” plugin and install and activate it.
  3. Once activated, go to “Snippets” and click “Add New”.
  4. Enter a name for the snippet (e.g. “Remove Product Sorting”).
  5. 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:

  1. Log in to your WordPress dashboard and go to “Plugins”.
  2. Click “Add New” and search for the “Disable Product Order for WooCommerce” plugin.
  3. Install and activate the plugin.
  4. Once activated, go to “WooCommerce” and click “Settings”.
  5. Go to the “Products” tab and select “Display”.
  6. Under “Default Product Sorting”, select “Default sorting (custom ordering + name)”.
  7. 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:

  1. Install and activate the “WooCommerce Sorting” plugin.
  2. Go to “WooCommerce” > “Settings” > “Products”.
  3. Scroll down to the “Sorting” section and uncheck all the boxes for the sorting options you want to remove.
  4. Click “Save changes” to save your settings.

Removing Product Sorting in WooCommerce by CSS Code

Another way to remove product sorting in WooCommerce is by using CSS. This method is more suited for users who are comfortable with modifying 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:

  1. Log in to your WordPress dashboard and go to “Appearance” -> “Customize”.
  2. Click on “Additional CSS” on the left-hand side of the customization screen.
  3. 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/

Subscribe to Our Newsletter

Stay up-to-date with WordPress news, tips, and exclusive offers by subscribing to our newsletter.

*By subscribing, you are signing up to receive our emails and can unsubscribe at any time.

More Posts

Related Posts