Filter: bricks/content/tag
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:
Section titled “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.
Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.