- This topic has 2 replies, 2 voices, and was last updated 8 years, 4 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Hi, I'm trying to remove the sorting drop down on shop pages. Using Enterprise Pro and woo connect.
I have search the woocommerce help files (that's a whole nother issue :)) I have tried every bit of code I can find, adding to functions, and still the drop down persists:
// remove default sorting dropdown
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
remove_action( ‘woocommerce_pagination’, ‘woocommerce_catalog_ordering’, 20 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 20 );
Anyone have any other ideas? I'm thinking this is related to using Genesis but not sure. Thanks!
Try this. It has nothing to do with Genesis:
remove_action('woocommerce_before_shop_loop','woocommerce_catalog_ordering', 30 );
You need to make sure you are using straight quotes in your code and not the curly quotes your post displays.
Thanks Victor!! Mich appreciated! This is resolved.
© 2023 WPEngine, Inc.