This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Set widget class programmatically

9 years ago

Hello!

I need to set widget css class from widget php code. I know that i can set widget class in Attributes > Widget Class input. Is it possible to do the same, but from php code?

Also, i know that i can pass some class name in widget constructor, param $widget_options, but in this case classname will be set to main widget wrapper, but i need to set it to panel-widget-style wrapper, so in this case i can override styles using controls in Design widget settings.

Thanks!

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Have a different question or issue?

Start New Thread