A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Remove ordering dropdown box from category page

If you only have a few products on each category page, the ordering dropdown box can be removed to give a  less cluttered look. You can set the default ordering with the order by date, price or title code snippet.

/**
 * Remove ordering dropdown box on category page
 */

add_action('init', 'cc_remove_ordering_dropdown_box');

function cc_remove_ordering_dropdown_box() {

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

}
View Raw Code ID: 1129