Hey there,
is there any way to add a class to the tag? I would like to display my whole content within a grid but of course not the header or footer. And there are a various reasons I don’t want to set a display:grid; directly for the main tag.
Hey there,
is there any way to add a class to the tag? I would like to display my whole content within a grid but of course not the header or footer. And there are a various reasons I don’t want to set a display:grid; directly for the main tag.
Hi!
To add classes to <main>
tag of your site, you can use this snippet.
add_filter( 'bricks/content/attributes', function( $attributes ) {
$attributes['class'] = 'yourclass1 nextclassifany';
return $attributes;
} );
Hope it helps.
Cheers!
Jornes
Thanks, works Unfortunately the class is only added at the front-end and not in the builder. Is there a solution too?