A simple widget to add custom text/ HTML to your theme. Advanced options allow you to apply shortcodes, make the title a link and add CSS classes.
As of April 2026, DMG Text Widget is a WordPress css plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.6K+ times in total. Requires WordPress 3.1+ and PHP false+. Available on WordPress.org since 2016. Last updated 9 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
DMG Text Widget replaces the standard text widget with one that includes advanced options to apply a CSS class, add paragraphs, apply shortcodes, hide the title and make the title a link.
Two hooks are available to filter the title and text; dmg_text_widget_title for the title and dmg_text_widget_text for the text.
For example, to change the title on a single page or post, you could add this to your functions.php file:
function myTitleFilter( $title )
{
if( is_singular() )
{
return "<strong>$title</strong>";
}
else
{
return $title;
}
}
add_filter( 'dmg_text_widget_title' , 'myTitleFilter');
More information about this plugin can be found at http://dancoded.com/tag/dmg-text-widget/.
Enter strings, either space…
| WordPress | 3.1+ requiredTested up to 4.6.30 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.