Jump to content

Recommended Posts

Posted

when we set a class for the widget in admin side, the widget class is not adding the set class to the default class . this is because a wrong addintion array are set . the fix to change

        // Set the attributes, don't allow overwriting the default class, concat instead
        if (isset($attributes['class']) && isset($default_attributes['class'])) {
            $attributes['class'] .= ' ' . $default_attributes['class'];
        }

to

        // Set the attributes, don't allow overwriting the default class, concat instead 
        if (isset($attributes['class']) && isset($default_attributes['class'])) {
            $default_attributes['class'] .= ' ' . $attributes['class'];
        }

 

widget helper class.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...