In this subject you can wrap a widget with the title outside but if you don't want a title, a
<div> will not be closed, and the template is broken. So I would like to do this in jQuery instead of the widget function. I tried many times but it doesn't work!
I updated your jsfiddle: http://jsfiddle.net/geertdd/gNzun/3/
var $widget = $('.widget'); $widget.wrapInner('<div class="inner_widget" />'); var $title = $('.widget_title').remove(); $widget.prepend($title);