Viewing 1 replies (of 1 total)
  • Thread Starter zeaks

    (@zeaks)

    Just adding the class to the end of after_title, then the closing div to after_widget but before the closing div of before_widget worked, unless there is no title choosen such as no title for the search widget.

    I removed the closing div I added and it works…even though it should be missing a div for <div class=”panel-body”> it’s not in the html. >.<

    'before_widget' => '<aside id="%1$s" class="widget %2$s panel panel-primary">',
    'after_widget'  => '</aside>',
    'before_title'  => '<div class="panel-heading"><h4 class="widget-title panel-title">',
    'after_title'   => '</h4></div><div class="panel-body">',

    Seems too be working, marking it as resolved.

Viewing 1 replies (of 1 total)
  • The topic ‘Add class to widget content’ is closed to new replies.