وەسف
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″]
دامەزراندن
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin through Plugins Installed Plugins
- Make sure you are running Divi 5+
- Open Divi Divi Library
- Copy any shortcode from the new Shortcode column
پهد
-
Does this work with Divi 4?
-
No.
This plugin checks for Divi 5 (ET_CORE_VERSION > 5.0) before loading.
Divi 4 uses a different rendering system incompatible with this shortcode. -
Does it work inside the Visual Builder?
-
Yes.
When in preview mode (et_pb_preview), the plugin captures Divi 5’s dynamic CSS to ensure modules render correctly. -
Can I nest library layouts inside other library layouts?
-
Yes, as long as they do not produce circular self-references.
پێداچوونەوەکان
هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.
بەشداربووان و گەشەپێدەران
“Shortcode Divi Library Layout for Divi 5” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە بەشدارییان تێدا کردووە.
بەشداربووان“Shortcode Divi Library Layout for Divi 5” وەربگێڕە بۆ زمانەکەی خۆت.
دەتەوێت بەشداربیت لە گەشەپێدان؟
گەڕان لە کۆدەکەدا بکە، سەیری تەمارگەی (SVN) بکە، یان بەشداربە لە ڕووداوتۆماری گەشەپێدان لە ڕێگەی (RSS).
ڕووداوتۆمارگەریی گۆڕین
1.0.0
- Initial release
- Adds
[divi_5_layout]shortcode - Adds shortcode column in Divi Library
- Adds one-click clipboard copy
- Handles Divi 5 CSS capture during dynamic block rendering