Answers for "add class to body class wordpress"

PHP
0

none

add_filter( 'body_class', 'custom_class' );
function custom_class( $classes ) {
    if ( is_page_template( 'page-example.php' ) ) {
        $classes
Posted by: Guest on January-01-1970
1

add class to body class wordpress

<body <?php body_class( 'class-name' ); ?>>
Posted by: Guest on December-22-2020
0

woocommerce body class in childtheme

<body <?php body_class(); ?>>
Posted by: Guest on December-04-2020

Browse Popular Code Answers by Language