Return to Snippet

Revision: 12780
at July 19, 2009 22:23 by kristarella


Updated Code
function custom_body_classes($classes) {
if (is_home())
	$classes[] = "home";
if (is_category())
	$classes[] = "category";

	return $classes;
}
add_filter('thesis_body_classes','custom_body_classes');

Revision: 12779
at March 28, 2009 08:20 by kristarella


Initial Code
function custom_body_classes($classes) {
if (is_home()) {
	$classes[] = "home";
} if (is_category()) {
	$classes[] = "category";
}    
	return $classes;
}
add_filter('thesis_body_classes','custom_body_classes');

Initial URL

                                

Initial Description

                                

Initial Title
Filter Thesis body classes

Initial Tags
wordpress

Initial Language
PHP