Sidebar widgets – dynamic CSS : problem with widget-title
Not a good solution… but is a solution: using jquery. register_sidebar( array ( ‘name’ => ‘Left Widget Area’, ‘id’ => ‘primary_widget_area’, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”><div class=”widget-title”></div><div class=”widget-content”>’, ‘after_widget’ => ‘</div></li><!– .widget –>’, ‘before_title’ => ‘<span class=”invisible-title” data-widget=”%1$s” style=”display:none;”>’, ‘after_title’ => ‘</span>’, ) ); and the JS jQuery().ready(function($) { $(‘.invisible-title’).each(function() { var title = … Read more