Created
May 17, 2013 15:57
-
-
Save bhwebworks/5600052 to your computer and use it in GitHub Desktop.
Add span class to widget headlines
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 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