How can I remove these bad boys from my Shop page, Category page(s) and Product pages? I’ve tried adding the following to my functions.php file but apparently none of these work with the new version of WooCommerce.
remove_action( ‘woocommerce_after_main_content’, ‘woocommerce_catalog_ordering’, 20 );
and
remove_action(‘woocommerce_after_shop_loop’, ‘woocommerce_catalog_ordering’, 20 );
and
remove_action(‘woocommerce_pagination’, ‘woocommerce_catalog_ordering’, 20 );
Here’s a link to screenshot of what I’m talking about.
Any help would be appreciated!
Okay, I was able to remove it by putting this in my child theme stylesheet but would really rather have something I could put in the functions.php file. I don’t know php so if you could provide something I could place in the functions.php file that would be peachy.
div .product-sorting {
display:none;
}
Hey!
Open wp-contentthemesenfoldconfig-woocommerceconfig.php and delete/comment out following line
woocommerce_catalog_ordering();
Regards,
Peter
Thanks Dude but that didn’t work. I removed the css styling and commented out and even deleted the line you referenced from the config.php but the drop downs returned. I’ve shown which line I deleted below. Is this the correct one?
echo “<div class=’extralight-border title_container shop_title_container $titleClass’>”;
//echo avia_breadcrumbs();
woocommerce_catalog_ordering(); (I DELETED THIS LINE)
echo $image;
Hey!
place this at the top of your functions php and you should be good to go:
function avia_woocommerce_frontend_search_params()
{
return;
}
Regards,
Kriesi