Dear Guido,
Let me look into it, you will get an improved version soon.
Thanks,
Fahad
@guido07111975 I have added a filter hook for this kind of situation so you can add widget class with convenience, actually changing or removing the the tag would be a major change which will disturb other users implementations.
Try to use the following and let me know:
add_filter(‘rfw_class_filter’, ‘rfw_class_filter_callback’, 10, 2);
First parameter would be a string, empty or maybe another style, you simply need to return your class “widget” like this.
function rfw_class_filter_callback($class=”){
return $class.’ widget’;
}
Thread Starter
Guido
(@guido07111975)
Hi,
Did not test your fix yet, but when adding $args['before_widget'] and $args['after_widget'] in your plugin file functions this happens:
When theme uses div tags for its widgets:
<div id="rfw_dock-2" class="widget widget_rfw_dock">
Your wrapper is:
<aside id="rfw_dock-20" data-class="rfw_dock-2" class="rfw-class rfw_dock-2">
I notice your widget adds an extra 0 to the widget ID.
And I notice other CSS-classes are being used. But you can re-add your classes via function public function __construct().
So I think this change can be made without breaking much 🙂
Guido