Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add span class to widget headlines
// Add span class to widget headlines
add_filter( 'widget_title', 'metro_widget_title' );
function metro_widget_title( $title ){
if( $title )
return sprintf('<span class="widget-headline">%s</span>', $title );
}
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.