Last active
April 8, 2016 20:48
-
-
Save jstnkrr/846cebbf874d3fb313cd to your computer and use it in GitHub Desktop.
region_body_class
This file contains hidden or 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 | |
// add a custom body class to a Wordpress template | |
// place this at the top of the template file before output | |
add_filter('body_class', 'region_body_class'); | |
function region_body_class($classes) { | |
$classes[] = 'template-body-class'; | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment