Skip to content

Instantly share code, notes, and snippets.

@jacobwise
Last active August 29, 2015 14:14
Show Gist options
  • Save jacobwise/d4f2d2b6feaa19425483 to your computer and use it in GitHub Desktop.
Save jacobwise/d4f2d2b6feaa19425483 to your computer and use it in GitHub Desktop.
/**
* Add and extra class to the entry-content div
*
*/
function jw_entry_content_class( $attributes ) {
if ( is_tax( $taxonomy ) )
$attributes['class'] .= $class_to_add;
return $attributes;
}
add_filter( 'genesis_attr_entry', 'jw_entry_content_class' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment