• Resolved Pieter92

    (@pieter92)


    How do I remove “sort by” drop-down menu through WooCommerce

    The following line in functions.php doesn’t do it for me:

    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Pieter92,

    This code should work

    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

    however, you can also do it by copy the file called orderby.php which is in plugins/woocommerce/templates/loop/ folder and paste it in your theme folder like themes/your_theme_name/woocommerce/loop and put it there(if you dont have woocommerce folder in theme, create one), open that file in text editor orderby.php and remove its content, save the file and its done ?? Let me know if this works for you.

    Thread Starter Pieter92

    (@pieter92)

    I didn’t have the woocommerce folder in the theme, so I created it, pasted the file there and removed the content. This didn’t work for me.

    EDIT: This worked for me, thank you very much! (I had a cache issue)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I remove "sort by" drop-down menu?’ is closed to new replies.