Filter: bricks/body/attributes
Filter to add HTML attributes to the body tag (@since 1.5).
add_filter( 'bricks/body/attributes', function( $attributes ) { // Add 'data-is-body' HTML attribute to footer with value 'y' $attributes['data-is-body'] = '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.