Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
function vmf_my_custom_class( $attributes ) {
if ( is_single() ) {
$attributes['class'] = $attributes['class'] . ' my-custom-class';
}
return $attributes;
}
add_filter( 'genesis_attr_entry-content', 'vmf_my_custom_class' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment