portfolio & blog

What follows is a small tip to create an extension of the base “text” widget of WordPress, to allow the execution of shortcodes and to allow to specify one or more classes (space separated) per-widget.
In this way it will be really simple identify the widget in our CSS.

To give it a try, just replace “Mytheme” and “mytheme” with your theme (or child theme) name and put the code into the function.php file.
You can alternatively create a simple plugin, but this is left as an exercise for the reader :P