Filter: bricks/content/attributes
Programmatically add HTML attributes to the main tag.
add_filter( 'bricks/content/attributes', function( $attributes ) { // Add 'data-is-content' HTML attribute to main with value 'y' $attributes['data-is-content'] = 'y'; return $attributes;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.