Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.