Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Custom Body Classes
// ADD CUSTOM BODY CLASSES
add_filter('body_class','hg_body_classes');
function hg_body_classes($classes)
{
$classes[] = "theme-" . get_stylesheet();
// ... other theme logic
return $classes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment