Can I add a custom class to some widgets?

Hi everyone,

Can I add a custom class to a specific widget?

Thank you :slight_smile:

If you don’t want to modify the core widgets, I’d make a custom widget (as a copy of the original one) and apply the class on the copy.

1 Like

But I want to add a specific class in the widget cage (in div.section.dashboard-section)

I see. However, it should be possible to inject a class into the parent from your custom widget’s JavaScript. Or you just modify the source and keep track of it for the next update.

1 Like