
How to Remove Default Sorting Dropdown from WooCommerce Shop Page
- June 17, 2016
- Leave a comment
WooCommerce – World’s quickest developing eCommerce platform is a free plugin that permits you to offer anything in the most productive way. It is built and coordinated with WordPress as a quality based eCommerce solution. It gives both store proprietors and engineers complete control of all adaptable elements to add strength to their online business.
WooCommerce shop page provides a default functionality of product sorting. Sometimes store owners don’t want to utilize this functionality for their e-store’s shop page. There is no need to dig down WooCommerce code for doing so as this can be done in a simple way.
In order to achieve this, you can utilize woocommerce_before_shop_loop hook. Add the following code in your Theme’s functions.php file:
1 2 3 4 5 |
<?php // Remove default sorting dropdown WooCommerce remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );} ?> |
User Comments