-
-
Save billerickson/c79c10b495b8bb5b8ff1c50834578d3c to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Body Classes | |
* | |
*/ | |
function ea_body_classes( $classes ) { | |
if( is_front_page() && ! get_query_var( 'paged' ) ) | |
$classes[] = 'front-page'; | |
return $classes; | |
} | |
add_filter( 'body_class', 'ea_body_classes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment