Last active
January 16, 2020 05:56
-
-
Save braddalton/ae2cb80293d9a999d9f917b8ddaf3783 to your computer and use it in GitHub Desktop.
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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