# Allow Extra HTML Tags in Bricks

> Adds HTML tags such as dialog, search and address to the list Bricks accepts in an element's custom tag setting, for more semantic markup.

- Type: PHP
- Runs: Run everywhere
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: bricks, html, accessibility
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/bricks-allow-extra-html-tags/

## Code

```php
// Extra tag names to allow.
$wpide_bricks_extra_tags = array( 'dialog', 'search', 'address', 'hgroup', 'menu' );

add_filter( 'bricks/allowed_html_tags', function ( $tags ) use ( $wpide_bricks_extra_tags ) {
    return array_values( array_unique( array_merge( (array) $tags, $wpide_bricks_extra_tags ) ) );
} );
```

## Notes

Only add real, non-executable HTML elements; never script or iframe.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Allow Extra HTML Tags in Bricks" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
