Merge pull request #3848 from BFTrick/update-product-page-css-classes

Updating Product Page CSS Classes
This commit is contained in:
Mike Jolley 2013-09-27 02:50:16 -07:00
commit 82cb89a9a6
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ if ( ! function_exists( 'wc_product_post_class' ) ) {
$categories = wp_get_post_terms( $product->id, "product_cat" );
if ( ! empty( $categories ) ) {
foreach ($categories as $key => $value) {
$classes[] = "category-" . $value->slug;
$classes[] = "product-cat-" . $value->slug;
}
}
@ -248,7 +248,7 @@ if ( ! function_exists( 'wc_product_post_class' ) ) {
$tags = wp_get_post_terms( $product->id, "product_tag" );
if ( ! empty( $tags ) ) {
foreach ($tags as $key => $value) {
$classes[] = "tag-" . $value->slug;
$classes[] = "product-tag-" . $value->slug;
}
}