Shortcode
The Beaver Builder shortcode allows you to add saved content to your layouts such as templates, rows, columns, and modules.
Any saved templates, rows, columns, or modules that are deleted and being used in shortcodes will no longer display. After removing a template, row, column, or module from your site, check your site carefully for any shortcodes.
Shortcodes used too frequently on the same page or post may affect performance.
Why use Beaver Builder shortcodes?
The two most common uses for Beaver Builder shortcode are:
Insert Saved Content such as rows, columns, or modules into other Beaver Builder modules where normally only text can occur.
Inserting a Beaver Builder layout, such as a saved row, into a post that does not use Beaver Builder but rather the WordPress editor. For example, you could insert a Subscribe Form module into the middle of a post that is using the WordPress editor.
What content can be turned into shortcodes?
You can create shortcodes for any Beaver Builder content that has an ID or a slug:
- Posts, pages, or custom post types with Beaver Builder layouts.
- Saved Content (rows, columns, modules).
- Saved Templates.
Changes automatically reflected
When you update the saved content, the changes are automatically reflected on every page or post that uses the shortcode. In other words, you don't need to republish pages or posts or purge cache.
In this section
📄️ Syntax
The Beaver Builder shortcode is really easy to use to add content to your layouts. This reference shows the syntax of the shortcode, including examples with attributes.
📄️ Find ID or slug
The Beaver Builder shortcode is really easy to use to add content to your layouts. This reference shows the syntax of the shortcode, including examples with attributes.
📄️ Using the Shortcode
The Beaver Builder shortcode makes it really easy to add saved content to your layouts. This article explains where the shortcode can be used and how to find or manually construct it.
📄️ Using Shortcodes in PHP files
Beaver Builder shortcodes can be used in PHP files such as header.php or footer.php to display saved templates, rows, columns, or modules.
📄️ Using Shortcodes in CSS
You can use shortcodes in Layout CSS & JavaScript settings, accessed from the Tools menu. Use this feature to replace a value in custom CSS or JS in a Beaver Builder layout.