Over a million developers have joined DZone.

Add Custom Body Class

·
// description of your code here


// Add my-custom-class to body tag

function custom_body_class($classes) {
	$classes[] = 'my-custom-class';
	return $classes;
}
add_filter('thesis_body_classes', 'custom_body_class');

// To single pages only

function custom_body_class($classes) {
 if (is_single()) {
	$classes[] = 'my-custom-class';
	return $classes;
 }
}
add_filter('thesis_body_classes', 'custom_body_class');
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}