Site logo

[Resolved] Remove the Default Sorting on WooCommerce

Home Forums Support [Resolved] Remove the Default Sorting on WooCommerce

Home Forums Support Remove the Default Sorting on WooCommerce

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #2140122
    Fernando
    Customer Support

    You’re welcome Harvey! Glad it’s working now! Feel free to reach out anytime if you’ll need assistance with anything else. 🙂

    #2295576
    Aaron

    Per the Woocommerce Docs I have added this snippet in a child theme functions.php:

    //Result Count
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_result_count’, 20 );

    //Default Sorting
    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

    This works to remove the Result Count, but the Default Sorting is not being removed. I tried priority 10,20,30,40 , but none of them work.

    Any thoughts?

    #2295592
    Fernando
    Customer Support

    Hi Aaron,

    In Appearance > Customize > Layout > WooCommerce, you can disable product sorting there.

    You can also remove the results count there.

    #2295660
    Aaron

    Thanks, I missed those settings. They must be relatively new.

    #2295663
    Fernando
    Customer Support

    You’re welcome Aaron!

    Here’s an overview of the WooCommerce Module: https://docs.generatepress.com/article/woocommerce-overview/

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.