Removed product arrangement feature in WooCommerce

    Remove product sorting feature (Product Sorting / Default Sorting / Sorting Dropdown) in WooCommerce.
    product-sorting-products-products-products-sorting-in-woocommerce
    Product sorting is a useful feature in WooCommerce , helping your customers to sort the product list by price (from low to high, high to low), by popularity. and from time to time updates. With this feature, customers can easily find the product they want in case the website has too many products displayed. However, if your website has only a handful of products, the product sorting feature is not really necessary.
    woocommerce-product-sorting
    Explore more:
    How to get rid of it, make your product list display page tidy? Immediately following are detailed instructions.

    Removing product arrangement feature in WooCommerce in general

    Add the following code to the functions.phptheme file (or child theme) that you are using. You can also insert it through the Code Snippets plugin .
    remove_action ('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30);
    view rawfunctions.php hosted with ❤ by GitHub
    Save, clear the web cache (if you use the cache creation plugin) and check the results.

    Removed product arrangement feature in Storefront theme

    If you use the Storefront theme (similar to WP Basic's WP Shop system ), replace the code above with the following code:
    add_action ('init', 'wpcb_remove_default_sorting_storefront');
    function wpcb_remove_default_sorting_storefront () {
    remove_action ('woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10);
    remove_action ('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10);
    }
    view rawfunctions.php hosted with ❤ by GitHub
    Save, clear the web cache (if you use the cache creation plugin) and check the results.
    woocommerce-product-sorting-removed
    WooCommerce's product sorting feature has completely disappeared. It's simple, right? Good luck!
    If you like this post, please subscribe to my blog to regularly update the latest and greatest posts via email. Thanks very much. :)

    No comments