Add class 'overlay-header' to body tag of front_page

PHOTO EMBED

Fri May 20 2022 11:16:44 GMT+0000 (UTC)

Saved by @MirkoEchghiG #php

<?php

add_filter( 'body_class','my_body_classes' );
function my_body_classes( $classes ) {
 
    if ( is_front_page() ) {
     
        $classes[] = 'overlay-header';
         
    }
     
    return $classes;
     
}
content_copyCOPY