Skip to content

Instantly share code, notes, and snippets.

@DEBA1801
DEBA1801 / woocommerce-category-accordion.css
Last active Nov 13, 2020
WooCommerce | Accordion style child categories with custom toggle in the sidebar widget | Useful for a large number of categories
View woocommerce-category-accordion.css
/* - woo cat toggling elements, injected via jQuery - */
/* make list item be relative, to be able to position toggle within this item, if desired */
#secondary .widget_product_categories ul.product-categories > li.cat-parent {
position: relative;
}
/* the new toggle element wrapper, which is added via jQuery */
#secondary .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle {
cursor: pointer;
float:right;