Custom widgets not getting proper classes
-
Widgets that rely on custom classes are currently breaking. Case in point is the “Simple Social Icons” plugin. This plugin relies on the widget being wrapped in a div with the class “.simple-social-icons”. With this theme, that class is not applied to the wrapping div.
The fix is easy. Just change the “before_widget” line in functions.php to:
'before_widget' => '<div id="%1$s" class="widget %2$s">'
The important change is the addition of %2$s in class.
Diff for quick patching here:
https://pastebin.com/Q4P9nFBp
- The topic ‘Custom widgets not getting proper classes’ is closed to new replies.