How To Disable Title In Selective WordPress Widgets ?

It is easy to hide title in some WordPress widgets simply by emptying their title field but some widgets doesn’t allows you to do so, this is because a default title is set in their code which automatically comes visible when you empty their title field. Now this tutorial explains how you can hide widget title in selective WordPress widgets easily.

Install and activate Remove Widget Title plugin. After activation you can disable widget title by adding a ! sign before their title in widget title field; so simply visit Dashboard -> Appearance -> Widgets and remove widget titles as per your need.

OR instead of installing this plugin you can simply add this plugin code in your theme function file. All you need to do is copy-paste following code in your theme’s function.php file and start using ! before widget title to hide it:

add_filter( ‘widget_title’, ‘remove_widget_title’ );
function remove_widget_title( $widget_title ) {
if ( substr ( $widget_title, 0, 1 ) == ‘!’ )
return;
else
return ( $widget_title );
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.