Created
March 21, 2015 14:48
-
-
Save frankschrijvers/80350acc900b1d525dd7 to your computer and use it in GitHub Desktop.
Add extra class to HTML elements in Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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