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

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

remove-all-results-woocommerce

9 Comments

  1. taj mohamed on April 9, 2020 at 12:00 pm

    thanks a lot

  2. Marco D on December 7, 2019 at 8:48 pm

    Thanks, it worked perfectly for me!! :)

  3. Corinna on August 18, 2019 at 1:37 pm

    Hi there,

    didn’t work for me, maybe because it’s a few years later^^

    If anyone is looking for a solution and this doesn’t work; I decided to use custom css to remove the things I didn’t want.

    • Trần Mạnh on September 25, 2019 at 9:10 am

      Try this it work for me!
      function woocommerce_result_count() {
      return;
      }

      • Karen on October 15, 2019 at 4:07 pm

        This worked, thank you!!!

  4. Somnath Jadhav on April 20, 2018 at 2:42 pm

    It works perfectly fine.
    Thanks for sharing code.

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

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

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

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

  7. 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 all Comment