Merge pull request #29051 from nielslange/update/#28724

This commit is contained in:
Néstor Soriano 2021-02-22 16:02:58 +01:00 committed by GitHub
commit 68dd901b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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';