Skip to content

Instantly share code, notes, and snippets.

@tacuar
tacuar / woo_product_accordion.css
Created February 14, 2022 08:45 — forked from erikyo/woo_product_accordion.css
WooCommerce sidebar product categories widget animated accordion
ul.product-categories ul {
margin: 0;
padding-left: 32px
}
ul.product-categories li {
line-height: 42px;
margin: 0
}
@tacuar
tacuar / woocommerce-category-toggle.css
Created February 12, 2022 14:08 — forked from Garconis/woocommerce-category-toggle.css
WooCommerce | Expand and collapse child categories with custom toggle in the sidebar widget | https://i.gyazo.com/e1a39ed551096444134324bb429722bb.mp4
/* - woo cat toggling elements, injected via jQuery - */
/* make list item be relative, to be able to position toggle within this item, if desired */
#sidebar .widget_product_categories ul.product-categories > li.cat-parent {
position: relative;
}
/* the new toggle element wrapper, which is added via jQuery */
#sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle {
cursor: pointer;
display: inline-block;
What else can you do?
How to clone repository to a specific commit? (full clone)
# Create empty repository to store your content
git clone <url>
git reset <sha-1> --hard
More info:
How to clone single branch?