Remove Default Sort in WooCommerce and ‘Showing All Results’ Notice

In an e-commerce environment using WooCommerce when there is only a few products to sell, it is cleaner and more intuitive to rid the space of some clutter – such as the ‘Default Sorting‘ options dropdown and the display notice ‘Showing all x results‘.

remove-default-sort-woocommerce

<?php // <- dont add in the opening tag
//remove display notice - Showing all x results
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
//remove default sorting drop-down from WooCommerce
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
view raw remove-sort-woo.php hosted with ❤ by GitHub

Add this code in your themes functions.php file and you will have a cleaner simpler  look.

remove-all-results-woocommerce

3 Comments

  1. charles on March 30, 2017 at 2:18 am

    i did it and now my website is blank and show 500 error …

  2. Jorge on January 23, 2017 at 9:37 am

    Hi, I just poted that and now my webpage doestn work XD

  3. Rick on November 19, 2016 at 7:38 pm

    this worked wonderfully but not on mobile. which is strange because it goes in the .php file.

    any suggestions?

    i know this post is old but thanks!!

Leave a Comment





%d bloggers like this: