<?php add_filter( 'body_class','my_body_classes' ); function my_body_classes( $classes ) { if ( is_front_page() ) { $classes[] = 'overlay-header'; } return $classes; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter