goonch
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [WooCommerce] Specific product category page in css …Thank you very much!
Finally this works! 🙂Forum: Plugins
In reply to: [WooCommerce] Specific product category page in css …Thank you.
My site is: http://www.jumbleheads.com .
If you would give me an exampel for one category (f.e. category “lighting” http://www.jumbleheads.com/product-category/art-decoration/lighting-en/?lang=en )
would be wonderful! 🙂thanks,
Forum: Plugins
In reply to: [WooCommerce] Specific product category page in css …Any suggestions? 🙁
It’s an importan design aspect for my shop…Forum: Plugins
In reply to: [WooCommerce] Specific product category page in css …Hello again,
Finally I’ve found this website:
https://stackoverflow.com/questions/32015133/woocommerce-custom-style-for-specific-product-category
where this code:// add taxonomy term to body_class function woo_custom_taxonomy_in_body_class( $classes ){ if( is_singular( 'product' ) ) { $custom_terms = get_the_terms(0, 'product_cat'); if ($custom_terms) { foreach ($custom_terms as $custom_term) { $classes[] = 'product_cat_' . $custom_term->slug; } } } return $classes; } add_filter( 'body_class', 'woo_custom_taxonomy_in_body_class' );is used in functions.php , to specify a category page in css.
But it didn’t work for me 🙁
What would be the correct class name for the category slug “urban-gardening” ?.urban-gardening .page-header-module { .urban-gardening-page-header-module { etc.didn’t work.
Viewing 4 replies - 1 through 4 (of 4 total)