Plugin Author
Scott Reilly
(@coffee2code)
WordPress & Plugin Developer
@importantlyernest: Hi,
Here’s some code for allowing the widget titles to receive the Text Hover treatment. You’ll have to put the code somewhere (ideally in a site-specific plugin, or possibly more conveniently in your active theme’s functions.php file).
If you don’t know how to modify files on your site, you’ll have to look around for more information to do so (look for creating a “wordpress site specific plugin”). I always encourage people to have a fresh backup of the site before they make any sort of modification and have enough know-how to be able to restore the file(s) they changed in case something goes wrong. This code works for me; it’s possible (though unlikely) it may not work for you given your specific theme and/or plugins.
// Prevent WP escaping HTML in widget titles (so they can be text-hoverable).
remove_filter( 'widget_title', 'esc_html' );
// Perform text hovering for widget titles.
add_filter( 'c2c_text_hover_filters', 'my_text_hover_widget_title', 100 );
function my_text_hover_widget_title( $filters ) {
$filters[] = 'widget_title';
return $filters;
}