The bricks/content/tag
(@since 1.11.1) filter lets you set the HTML tag for the #brx-content
node that your Bricks content data is wrapped in.
Make sure the HTML tag you return is an allowed HTML tag.
Example Usage:
add_filter( 'bricks/content/tag', function( $tag ) {
// Set #brx-content tag to 'div' (default: main)
return 'div';
} );
Parameters:
$tag
(string): The default HTML tag, which ismain
.
Return:
- (string): The HTML tag you want to render instead of the default.