Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wooexperte/3117932f411126ea354a8bb0c469816f to your computer and use it in GitHub Desktop.
Save wooexperte/3117932f411126ea354a8bb0c469816f to your computer and use it in GitHub Desktop.
Sortierung im WooCommerce Shop deaktivieren
/**
* Enfernt die WooCommerce Standardsorierung von der Shopseite.
*/
add_action( 'after_setup_theme', 'remove_woocommerce_catalog_ordering', 1 );
function remove_woocommerce_catalog_ordering() {
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); // Bei Theme Storefront, 30 mit 10 autauschen.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment