Skip to content

Instantly share code, notes, and snippets.

@wpexplorer
Created August 5, 2020 00:59
Show Gist options
  • Save wpexplorer/bbe8518573b157ae4ca7ab23bd479072 to your computer and use it in GitHub Desktop.
Save wpexplorer/bbe8518573b157ae4ca7ab23bd479072 to your computer and use it in GitHub Desktop.
add_filter( 'body_class', function( $class ) {
if ( function_exists( 'is_shop' ) && is_shop() ) {
$class[] = 'shop-page';
}
return $class;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment