Hi
Is there an Option in Theme ENFOLD to HIDE both Sort Dropdowns?
– Sortieren nach Standard
– Zeige X Produkte pro Seite
I tried:
// Entfernen der Dropdown-Sortierung im Shop.
remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_result_count’, 20 );
remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );
Which is not working.
Any tipps how to hide both Sort Dropdowns on Shop Page?
Thank you
Steve
Hey Steve,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
#top.woocommerce-shop .template-shop .product-sorting {
display: none;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hi and thank you
I am aware of the CSS display none; possibility.
I am looking for the PHP snippet instead or an Option the Check «disable Sort function» somewhere to hide Sort function.
This PHP Snippet
remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );
unfortunately does not work
Any ideas?
Hi,
This remove_action is already applied in the /config-woocommerce/config.php file in the theme, that is why it is not working. I didn’t find another PHP solution so I asked the rest of the team for advice and will write back when I hear from them.
I believe that the css solution above will give you better control of where the items are removed, but possibly a PHP solution will be provided, thank you for your patience
Best regards,
Mike