Skip to content

Instantly share code, notes, and snippets.

@frankschrijvers
Created March 21, 2015 14:48
Show Gist options
  • Save frankschrijvers/80350acc900b1d525dd7 to your computer and use it in GitHub Desktop.
Save frankschrijvers/80350acc900b1d525dd7 to your computer and use it in GitHub Desktop.
Add extra class to HTML elements in Genesis
// Add extra class to content
function wpstudio_add_class( $attributes ) {
$attributes['class'] = $attributes['class']. 'your_extra_class';
return $attributes;
}
add_filter( 'genesis_attr_content', 'wpstudio_add_class' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment