Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created October 29, 2011 23:48
Show Gist options
  • Save billerickson/1325258 to your computer and use it in GitHub Desktop.
Save billerickson/1325258 to your computer and use it in GitHub Desktop.
Custom Body Classes - Thesis
<?php
/**
* Custom Body Classes - for Thesis
* @link http://www.billerickson.net/wordpress-class-body-tag/
* @author Bill Erickson
*
* @param array $classes existing body classes
* @return array modified body classes
*/
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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment