Shortcode Divi Library Layout for Divi 5
·
Adds a shortcode to render Divi 5 library layouts anywhere and a quick “Copy Shortcode” column inside the Divi Library admin.
Shortcode Divi Library Layout for Divi 5 allows you to embed any Divi 5 Library layout anywhere on your site using a simple shortcode: [divi_5_layout id=”123″]
Perfect for: * Reusing sections / modules inside other Divi layouts * Embedding layouts in posts, pages, Custom Post Types * Outputting Divi 5 Library templates programmatically or via other builders * Creating dynamic, reusable components
This plugin also adds a “Shortcode” column to the Divi Library screen (et_pb_layout post type), allowing you to copy the shortcode instantly with one click.
A small “Copied!” indicator confirms successful copy to clipboard.
Key Features
- Adds
[divi_5_layout]shortcode for Divi 5 layouts - Works with Divi 5 (checks ET Core version before loading)
- Safely renders the block content of library layouts
- Properly handles CSS generated during Divi 5 module rendering
- Adds a new Shortcode column in Divi Library admin
- One-click copy to clipboard with visual feedback
- Fallback rendering for preview / builder modes
Usage
Place the shortcode anywhere shortcodes are supported: [divi_5_layout id=”123″]
Parameters
id— (required) The Divi Library layout post ID.
Example: [divi_5_layout id=”2487″]