Migrate Divi to Bricks
Converts Divi-built WordPress pages to Bricks Builder. Parses Divi's shortcode-based content from post_content, maps each module to its Bricks element equivalent, generates a migration plan for approval, and writes clean Bricks JSON to the target pages. Use this skill whenever someone wants to move from Divi to Bricks, replace the Divi Builder with Bricks, or rebuild Divi pages in Bricks.
What This Skill Does
This is a cross-format migration — Divi stores content as nested shortcodes in post_content, while Bricks uses a JSON array in _bricks_page_content_2. The skill must parse Divi's shortcode hierarchy, understand each module's purpose and settings, then reconstruct that intent as Bricks elements with proper parent-child relationships and settings.
The format gap makes this complex, but both builders are feature-rich visual editors, so most Divi modules have strong Bricks equivalents. The result is cleaner, faster-rendering content in Bricks' modern architecture.
Handles:
- et_pb_section → Bricks Section element
- et_pb_row/et_pb_column → Bricks Container elements (with flex layout)
- et_pb_text → Bricks Text Basic element
- et_pb_blurb → Bricks Icon Box or Container with child elements
- et_pb_image → Bricks Image element
- et_pb_button → Bricks Button element
- et_pb_video → Bricks Video element
- et_pb_heading (via text modules) → Bricks Heading element
- et_pb_divider → Bricks Divider element
- et_pb_accordion/et_pb_toggle → Bricks Accordion element
- et_pb_tabs → Bricks Tabs element
- et_pb_gallery → Bricks Gallery element
- et_pb_slider → Bricks Slider element (close mapping)
- et_pb_pricing_tables → Bricks Pricing Table element
- et_pb_code → Bricks Code element
- et_pb_map → Bricks Map element
- Custom CSS → Bricks custom CSS fields
- Column width ratios → Bricks container flex percentages
Preserves:
- All text content and inline HTML formatting
- Image URLs, alt text, and dimensions
- Typography settings (font family, size, weight)
- Color values and gradients
- Spacing (margin, padding) — converted from Divi's format to Bricks'
- Background images and overlays
- Border and shadow settings
- Button labels, URLs, targets
- CSS classes
What This Skill Does NOT Do
- Specialty sections — Divi's specialty section layouts (sidebar + content) need manual layout setup in Bricks.
- Global modules — Divi's global modules (
et_pb_layout post type) are resolved to inline content. Bricks templates must be set up separately.
- Third-party Divi modules — Plugins extending Divi (Divi Toolbox, Divi Supreme, etc.) are flagged for manual recreation.
- Divi theme customizer — Global fonts, colors, and spacing from the Divi theme customizer don't transfer. These need to be set in Bricks theme settings.
- Dynamic content — Divi's dynamic content needs Bricks' dynamic data system configured separately.
- Contact forms — et_pb_contact_form needs to be rebuilt using Bricks' form element or a forms plugin.
- Divi Library layouts — Stored as
et_pb_layout post type; not auto-migrated to Bricks templates.
- Motion effects — Scroll effects and animations differ between builders.
- Divi theme dependency — If using the Divi theme (not just plugin), you are switching to Bricks theme — a complete theme change.
Requirements
- Respira for WordPress plugin installed and connected
- MCP connection active (desktop or WebMCP)
- Divi theme or Divi Builder plugin active (to read source content)
- Bricks theme installed and active (to write target content)
- Read access to scan Divi content
- Write access to create duplicates with Bricks content
Trigger Phrase
Alternative Triggers
- "convert divi to bricks"
- "switch from divi to bricks"
- "rebuild divi pages in bricks"
- "move from divi to bricks"
- "divi to bricks migration"
- "replace divi with bricks"
Source Builder: Divi
Divi stores content as shortcodes in post_content. The module structure follows a strict hierarchy:
[et_pb_section fb_built="1" _builder_version="4.x"]
[et_pb_row _builder_version="4.x"]
[et_pb_column type="4_4" _builder_version="4.x"]
[et_pb_text _builder_version="4.x"]
<p>Content here</p>
[/et_pb_text]
[/et_pb_column]
[/et_pb_row]
[/et_pb_section]
Key Divi specifics:
- Section types: regular, fullwidth, specialty
- Column types:
4_4, 1_2, 1_3, 2_3, 1_4, 3_4
- Settings as attributes:
background_color, custom_margin, custom_padding, text_orientation
- Content encoding: HTML entities, percent-encoding, occasional base64
- Global modules:
global_module attribute → et_pb_layout post type
- Custom CSS:
custom_css_main_element, custom_css_before, custom_css_after
Read Divi content via wordpress_extract_builder_content with builder=divi.
Target Builder: Bricks
Bricks stores content in _bricks_page_content_2 as a JSON array:
[
{ "id": "abc123", "name": "section", "parent": 0, "settings": {...} },
{ "id": "def456", "name": "container", "parent": "abc123", "settings": {...} },
{ "id": "ghi789", "name": "heading", "parent": "def456", "settings": { "tag": "h2", "text": "..." } }
]
Key Bricks specifics:
- Elements use
name field: section, container, heading, text-basic, image, button
- Parent-child via
parent field referencing id
- IDs are short alphanumeric strings
- Settings use Bricks-specific keys
- Responsive via
_breakpoints within settings
Write Bricks content via wordpress_inject_builder_content with builder=bricks.
Execution Workflow
Phase 1: Pre-Migration Audit
- Verify Respira + MCP connection via
wordpress_get_site_context. If unavailable, stop and show setup guidance.
- Confirm Divi is active via
wordpress_list_plugins and wordpress_get_site_context.
- Confirm Bricks theme is installed via
wordpress_get_site_context.
- Important: If using Divi theme (not plugin), note this is a full theme switch to Bricks.
- Scan all content for Divi usage:
wordpress_list_pages and wordpress_list_posts
- Check builder via
wordpress_get_builder_info
- Extract Divi content via
wordpress_extract_builder_content with builder=divi
- Build inventory:
- Total pages/posts using Divi
- Module types (frequency count)
- Specialty sections found
- Global modules referenced
- Third-party Divi modules
- Content encoding issues
- Complexity per page
Phase 2: Migration Plan
## Divi → Bricks Migration Plan
### Theme Transition Note
[If Divi theme is active]: This migration involves switching from the Divi
theme to the Bricks theme. Headers, footers, and global templates will need
to be recreated in Bricks' template system.
### Site Inventory
- Total Divi pages: X
- Total modules to convert: X
- Auto-convertible: X (Y%)
- Manual attention: X (Y%)
### Module → Element Mapping
| Divi Module | Bricks Element | Status |
|-------------------|----------------|----------|
| et_pb_text | text-basic | Auto |
| et_pb_image | image | Auto |
| et_pb_blurb | icon-box | Auto |
| et_pb_button | button | Auto |
| et_pb_slider | slider | Auto |
| et_pb_tabs | tabs | Auto |
| et_pb_accordion | accordion | Auto |
| et_pb_contact | — | Manual |
| [divi addon] | — | Manual |
### Shortcode Parsing Complexity
- Pages with clean shortcodes: X
- Pages with encoded content: X (will decode during migration)
- Pages with specialty sections: X (layout approximation needed)
### Page-by-Page Plan
1. **[Page Title]** — X modules, [complexity]
2. ...
Ask for confirmation:
Bricks offers a modern replacement for Divi with cleaner output. Your originals stay safe.
- Migrate all pages
- Migrate specific pages
- Start with a test page (recommended)
- Just keep this plan
Phase 3: Page-by-Page Migration
For each approved page:
- Read Divi content via
wordpress_extract_builder_content with builder=divi
- Parse the shortcode tree:
- Identify section → row → column → module hierarchy
- Decode encoded content (HTML entities, percent-encoding)
- Resolve global modules to inline content
- Map column types to percentage widths
- Build Bricks JSON array:
- Create
section element for each et_pb_section
- Create
container elements for rows/columns with flex layout
- Map column widths:
4_4→100%, 1_2→50%, 1_3→33.33%, etc.
- Convert each module → Bricks element:
et_pb_text → text-basic (preserve inner HTML)
et_pb_blurb → icon-box or container with children
et_pb_image → image (map src, alt, title attributes)
et_pb_button → button (map text, URL, style)
- Map Divi attributes to Bricks settings (colors, spacing, typography)
- Generate unique IDs and proper parent references
- Flag unmappable modules with comments
- Create duplicate via
wordpress_create_page_duplicate or wordpress_create_post_duplicate
- Write Bricks JSON via
wordpress_inject_builder_content with builder=bricks
- Report status
Phase 4: Post-Migration Verification
- Summarize migrations:
- Pages migrated, elements created, items flagged
- For each migrated page:
- Link to Bricks editor
- Flagged items
- Layout notes (specialty sections, encoded content)
- Post-migration checklist:
Safety Model
- Read-only analysis first — full content scan before any changes
- Explicit user confirmation required before creating duplicates
- Original Divi pages are never modified or deleted
- All migrated content goes to draft duplicates only
- Never auto-publishes migrated pages
- Creates a snapshot before migration begins (when available)
- Provides clear rollback path (delete duplicates)
- Warns about theme switch implications if using Divi theme
Honest Disclaimer
This skill converts Divi page content to Bricks format and creates draft duplicates for review.
It cannot:
- Migrate Divi specialty sections with perfect layout fidelity
- Convert global modules to Bricks templates automatically
- Handle third-party Divi plugin modules
- Migrate Divi theme customizer settings
- Replace forms, popups, or animation setup
- Guarantee pixel-perfect results from shortcode-to-JSON conversion
It can:
- Parse complex Divi shortcode hierarchies including encoded content
- Convert 75-85% of standard Divi modules to Bricks elements
- Preserve all text, images, links, and core styling
- Take advantage of Bricks' modern, faster rendering
- Save days of manual page rebuilding
- Flag everything that needs manual attention
- Keep original pages completely safe
Tooling
Core WordPress tools
wordpress_get_site_context
wordpress_list_plugins
wordpress_list_pages
wordpress_list_posts
wordpress_read_page
wordpress_read_post
wordpress_get_builder_info
wordpress_extract_builder_content
wordpress_inject_builder_content
wordpress_find_builder_targets
wordpress_create_page_duplicate
wordpress_create_post_duplicate
Telemetry
After run completion, send fire-and-forget usage tracking to:
POST https://www.respira.press/api/skills/track-usage
Include:
skill_slug = migrate-divi-to-bricks
- site/version context
- duration and success
- pages migrated, elements created, modules flagged counts
- tools used
Never block user flow on telemetry failure.
Related Skills
- WordPress Site DNA (understand site structure and theme before migrating)
- Internal Link Builder (verify internal links post-migration)
- SEO & AEO Amplifier (verify SEO preservation post-migration)
- Technical Debt Audit (find Divi shortcode remnants post-migration)
Built by Respira Team
https://respira.press/skills/migrate-divi-to-bricks
1---2name: migrate-divi-to-bricks3description: Converts Divi-built WordPress pages to Bricks Builder. Parses Divi's shortcode tree from post_content, maps each module to its Bricks element equivalent, generates a migration plan for approval, and writes clean Bricks JSON to the target pages. Use when user says "migrate Divi to Bricks", "replace Divi with Bricks", "switch from Divi to Bricks", or "rebuild Divi pages in Bricks".4license: MIT5---6
7# Migrate Divi to Bricks
8
9Converts Divi-built WordPress pages to Bricks Builder. Parses Divi's shortcode-based content from post_content, maps each module to its Bricks element equivalent, generates a migration plan for approval, and writes clean Bricks JSON to the target pages. Use this skill whenever someone wants to move from Divi to Bricks, replace the Divi Builder with Bricks, or rebuild Divi pages in Bricks.
10
11## What This Skill Does
12
13This is a cross-format migration — Divi stores content as nested shortcodes in `post_content`, while Bricks uses a JSON array in `_bricks_page_content_2`. The skill must parse Divi's shortcode hierarchy, understand each module's purpose and settings, then reconstruct that intent as Bricks elements with proper parent-child relationships and settings.
14
15The format gap makes this complex, but both builders are feature-rich visual editors, so most Divi modules have strong Bricks equivalents. The result is cleaner, faster-rendering content in Bricks' modern architecture.
16
17**Handles:**
18- et_pb_section → Bricks Section element
19- et_pb_row/et_pb_column → Bricks Container elements (with flex layout)
20- et_pb_text → Bricks Text Basic element
21- et_pb_blurb → Bricks Icon Box or Container with child elements
22- et_pb_image → Bricks Image element
23- et_pb_button → Bricks Button element
24- et_pb_video → Bricks Video element
25- et_pb_heading (via text modules) → Bricks Heading element
26- et_pb_divider → Bricks Divider element
27- et_pb_accordion/et_pb_toggle → Bricks Accordion element
28- et_pb_tabs → Bricks Tabs element
29- et_pb_gallery → Bricks Gallery element
30- et_pb_slider → Bricks Slider element (close mapping)
31- et_pb_pricing_tables → Bricks Pricing Table element
32- et_pb_code → Bricks Code element
33- et_pb_map → Bricks Map element
34- Custom CSS → Bricks custom CSS fields
35- Column width ratios → Bricks container flex percentages
36
37**Preserves:**
38- All text content and inline HTML formatting
39- Image URLs, alt text, and dimensions
40- Typography settings (font family, size, weight)
41- Color values and gradients
42- Spacing (margin, padding) — converted from Divi's format to Bricks'
43- Background images and overlays
44- Border and shadow settings
45- Button labels, URLs, targets
46- CSS classes
47
48## What This Skill Does NOT Do
49
50- **Specialty sections** — Divi's specialty section layouts (sidebar + content) need manual layout setup in Bricks.
51- **Global modules** — Divi's global modules (`et_pb_layout` post type) are resolved to inline content. Bricks templates must be set up separately.
52- **Third-party Divi modules** — Plugins extending Divi (Divi Toolbox, Divi Supreme, etc.) are flagged for manual recreation.
53- **Divi theme customizer** — Global fonts, colors, and spacing from the Divi theme customizer don't transfer. These need to be set in Bricks theme settings.
54- **Dynamic content** — Divi's dynamic content needs Bricks' dynamic data system configured separately.
55- **Contact forms** — et_pb_contact_form needs to be rebuilt using Bricks' form element or a forms plugin.
56- **Divi Library layouts** — Stored as `et_pb_layout` post type; not auto-migrated to Bricks templates.
57- **Motion effects** — Scroll effects and animations differ between builders.
58- **Divi theme dependency** — If using the Divi theme (not just plugin), you are switching to Bricks theme — a complete theme change.
59
60## Requirements
61
62- Respira for WordPress plugin installed and connected
63- MCP connection active (desktop or WebMCP)
64- Divi theme or Divi Builder plugin active (to read source content)
65- Bricks theme installed and active (to write target content)
66- Read access to scan Divi content
67- Write access to create duplicates with Bricks content
68
69## Trigger Phrase
70
71- "migrate divi to bricks"
72
73## Alternative Triggers
74
75- "convert divi to bricks"
76- "switch from divi to bricks"
77- "rebuild divi pages in bricks"
78- "move from divi to bricks"
79- "divi to bricks migration"
80- "replace divi with bricks"
81
82## Source Builder: Divi
83
84Divi stores content as shortcodes in `post_content`. The module structure follows a strict hierarchy:
85
86```
87[et_pb_section fb_built="1" _builder_version="4.x"]
88 [et_pb_row _builder_version="4.x"]
89 [et_pb_column type="4_4" _builder_version="4.x"]
90 [et_pb_text _builder_version="4.x"]
91 <p>Content here</p>
92 [/et_pb_text]
93 [/et_pb_column]
94 [/et_pb_row]
95[/et_pb_section]
96```
97
98Key Divi specifics:
99- **Section types**: regular, fullwidth, specialty
100- **Column types**: `4_4`, `1_2`, `1_3`, `2_3`, `1_4`, `3_4`
101- **Settings as attributes**: `background_color`, `custom_margin`, `custom_padding`, `text_orientation`
102- **Content encoding**: HTML entities, percent-encoding, occasional base64
103- **Global modules**: `global_module` attribute → `et_pb_layout` post type
104- **Custom CSS**: `custom_css_main_element`, `custom_css_before`, `custom_css_after`
105
106Read Divi content via `wordpress_extract_builder_content` with `builder=divi`.
107
108## Target Builder: Bricks
109
110Bricks stores content in `_bricks_page_content_2` as a JSON array:
111
112```json
113[
114 { "id": "abc123", "name": "section", "parent": 0, "settings": {...} },
115 { "id": "def456", "name": "container", "parent": "abc123", "settings": {...} },
116 { "id": "ghi789", "name": "heading", "parent": "def456", "settings": { "tag": "h2", "text": "..." } }
117]
118```
119
120Key Bricks specifics:
121- Elements use `name` field: `section`, `container`, `heading`, `text-basic`, `image`, `button`
122- Parent-child via `parent` field referencing `id`
123- IDs are short alphanumeric strings
124- Settings use Bricks-specific keys
125- Responsive via `_breakpoints` within settings
126
127Write Bricks content via `wordpress_inject_builder_content` with `builder=bricks`.
128
129## Execution Workflow
130
131### Phase 1: Pre-Migration Audit
132
1331. Verify Respira + MCP connection via `wordpress_get_site_context`. If unavailable, stop and show setup guidance.
1342. Confirm Divi is active via `wordpress_list_plugins` and `wordpress_get_site_context`.
1353. Confirm Bricks theme is installed via `wordpress_get_site_context`.
1364. **Important**: If using Divi theme (not plugin), note this is a full theme switch to Bricks.
1375. Scan all content for Divi usage:
138 - `wordpress_list_pages` and `wordpress_list_posts`
139 - Check builder via `wordpress_get_builder_info`
1406. Extract Divi content via `wordpress_extract_builder_content` with `builder=divi`
1417. Build inventory:
142 - Total pages/posts using Divi
143 - Module types (frequency count)
144 - Specialty sections found
145 - Global modules referenced
146 - Third-party Divi modules
147 - Content encoding issues
148 - Complexity per page
149
150### Phase 2: Migration Plan
151
152```
153## Divi → Bricks Migration Plan
154
155### Theme Transition Note
156[If Divi theme is active]: This migration involves switching from the Divi
157theme to the Bricks theme. Headers, footers, and global templates will need
158to be recreated in Bricks' template system.
159
160### Site Inventory
161- Total Divi pages: X
162- Total modules to convert: X
163- Auto-convertible: X (Y%)
164- Manual attention: X (Y%)
165
166### Module → Element Mapping
167| Divi Module | Bricks Element | Status |
168|-------------------|----------------|----------|
169| et_pb_text | text-basic | Auto |
170| et_pb_image | image | Auto |
171| et_pb_blurb | icon-box | Auto |
172| et_pb_button | button | Auto |
173| et_pb_slider | slider | Auto |
174| et_pb_tabs | tabs | Auto |
175| et_pb_accordion | accordion | Auto |
176| et_pb_contact | — | Manual |
177| [divi addon] | — | Manual |
178
179### Shortcode Parsing Complexity
180- Pages with clean shortcodes: X
181- Pages with encoded content: X (will decode during migration)
182- Pages with specialty sections: X (layout approximation needed)
183
184### Page-by-Page Plan
1851. **[Page Title]** — X modules, [complexity]
1862. ...
187```
188
189Ask for confirmation:
190> Bricks offers a modern replacement for Divi with cleaner output. Your originals stay safe.
191> 1. Migrate all pages
192> 2. Migrate specific pages
193> 3. Start with a test page (recommended)
194> 4. Just keep this plan
195
196### Phase 3: Page-by-Page Migration
197
198For each approved page:
199
2001. Read Divi content via `wordpress_extract_builder_content` with `builder=divi`
2012. Parse the shortcode tree:
202 - Identify section → row → column → module hierarchy
203 - Decode encoded content (HTML entities, percent-encoding)
204 - Resolve global modules to inline content
205 - Map column types to percentage widths
2063. Build Bricks JSON array:
207 - Create `section` element for each `et_pb_section`
208 - Create `container` elements for rows/columns with flex layout
209 - Map column widths: `4_4`→100%, `1_2`→50%, `1_3`→33.33%, etc.
210 - Convert each module → Bricks element:
211 - `et_pb_text` → `text-basic` (preserve inner HTML)
212 - `et_pb_blurb` → `icon-box` or container with children
213 - `et_pb_image` → `image` (map src, alt, title attributes)
214 - `et_pb_button` → `button` (map text, URL, style)
215 - Map Divi attributes to Bricks settings (colors, spacing, typography)
216 - Generate unique IDs and proper parent references
217 - Flag unmappable modules with comments
2184. Create duplicate via `wordpress_create_page_duplicate` or `wordpress_create_post_duplicate`
2195. Write Bricks JSON via `wordpress_inject_builder_content` with `builder=bricks`
2206. Report status
221
222### Phase 4: Post-Migration Verification
223
2241. Summarize migrations:
225 - Pages migrated, elements created, items flagged
2262. For each migrated page:
227 - Link to Bricks editor
228 - Flagged items
229 - Layout notes (specialty sections, encoded content)
2303. Post-migration checklist:
231 - [ ] Open each duplicate in Bricks editor
232 - [ ] Verify section/container structure
233 - [ ] Check responsive views
234 - [ ] Verify images and media
235 - [ ] Test links and buttons
236 - [ ] Recreate flagged modules
237 - [ ] Set up Bricks templates for header/footer (if switching from Divi theme)
238 - [ ] Rebuild contact forms using Bricks form element or plugin
239 - [ ] Compare with Divi original
240 - [ ] Check for any Divi shortcode remnants
241
242## Safety Model
243
244- Read-only analysis first — full content scan before any changes
245- Explicit user confirmation required before creating duplicates
246- Original Divi pages are never modified or deleted
247- All migrated content goes to draft duplicates only
248- Never auto-publishes migrated pages
249- Creates a snapshot before migration begins (when available)
250- Provides clear rollback path (delete duplicates)
251- Warns about theme switch implications if using Divi theme
252
253## Honest Disclaimer
254
255This skill converts Divi page content to Bricks format and creates draft duplicates for review.
256
257It cannot:
258- Migrate Divi specialty sections with perfect layout fidelity
259- Convert global modules to Bricks templates automatically
260- Handle third-party Divi plugin modules
261- Migrate Divi theme customizer settings
262- Replace forms, popups, or animation setup
263- Guarantee pixel-perfect results from shortcode-to-JSON conversion
264
265It can:
266- Parse complex Divi shortcode hierarchies including encoded content
267- Convert 75-85% of standard Divi modules to Bricks elements
268- Preserve all text, images, links, and core styling
269- Take advantage of Bricks' modern, faster rendering
270- Save days of manual page rebuilding
271- Flag everything that needs manual attention
272- Keep original pages completely safe
273
274## Tooling
275
276**Core WordPress tools**
277- `wordpress_get_site_context`
278- `wordpress_list_plugins`
279- `wordpress_list_pages`
280- `wordpress_list_posts`
281- `wordpress_read_page`
282- `wordpress_read_post`
283- `wordpress_get_builder_info`
284- `wordpress_extract_builder_content`
285- `wordpress_inject_builder_content`
286- `wordpress_find_builder_targets`
287- `wordpress_create_page_duplicate`
288- `wordpress_create_post_duplicate`
289
290## Telemetry
291
292After run completion, send fire-and-forget usage tracking to:
293
294- `POST https://www.respira.press/api/skills/track-usage`
295
296Include:
297- `skill_slug = migrate-divi-to-bricks`
298- site/version context
299- duration and success
300- pages migrated, elements created, modules flagged counts
301- tools used
302
303Never block user flow on telemetry failure.
304
305## Related Skills
306
307- WordPress Site DNA (understand site structure and theme before migrating)
308- Internal Link Builder (verify internal links post-migration)
309- SEO & AEO Amplifier (verify SEO preservation post-migration)
310- Technical Debt Audit (find Divi shortcode remnants post-migration)
311
312---
313
314Built by Respira Team
315https://respira.press/skills/migrate-divi-to-bricks