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.

Function to add Widget class to it’s parent

8 years ago

For styling reasons I need the Widget class entered under the Attributes tab of a widget also in the parent div (The div with class .so-panel).

I know you can add the Row class to it’s parent with the following function:

function panels_row_classes( $classes, $grid ) {
	$classes[] = $grid["style"]["class"];
	return $classes;
}
add_filter( 'siteorigin_panels_row_classes', 'panels_row_classes', 10, 2 );

Now I also need something simular for the Widget class, but my knowledge of Filters and Hooks are limited.

Any help is appreciated!

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