Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active Jan 16, 2020
Embed
What would you like to do?
Reduce Height of Essence Pro Hero Image Excluding Front Page Step 1 https://wpsites.net/web-design/reduce-height-of-essence-pro-hero-image-excluding-front-page/#step-1
add_filter( 'body_class', 'essence_add_body_class_exclude_front_page' );
function essence_add_body_class_exclude_front_page( $classes ) {
if ( ! is_front_page() ) {
$classes[] = 'exclude-front-hero';
}
return $classes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment