Merge pull request #29051 from nielslange/update/#28724
This commit is contained in:
commit
68dd901b65
|
@ -301,6 +301,12 @@ function wc_generator_tag( $gen, $type ) {
|
||||||
function wc_body_class( $classes ) {
|
function wc_body_class( $classes ) {
|
||||||
$classes = (array) $classes;
|
$classes = (array) $classes;
|
||||||
|
|
||||||
|
if ( is_shop() ) {
|
||||||
|
|
||||||
|
$classes[] = 'woocommerce-shop';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if ( is_woocommerce() ) {
|
if ( is_woocommerce() ) {
|
||||||
|
|
||||||
$classes[] = 'woocommerce';
|
$classes[] = 'woocommerce';
|
||||||
|
|
Loading…
Reference in New Issue