Knowledge · Website Redesign
Migrating from Divi to a Custom Theme: What Breaks and Why
Divi migrations are Elementor migrations with extra friction. The Divi Builder stores layout data differently, the shortcode soup is denser, and the inline-styles are heavier. Pricing is similar ($5K-$8K) but the timeline runs a day or two longer. Here’s what to expect.
№ 01Divi’s storage pattern: nested shortcodes that nobody enjoys
Divi stores page layouts as deeply nested shortcodes inside the post body. A simple section with 3 columns and 6 modules looks like 40-60 lines of shortcode in the database. The shortcodes contain layout settings AND content interleaved — extracting just the content requires parsing the shortcode tree.
Our extraction script handles Divi shortcodes the same way it handles Elementor JSON: walk the tree, pull headings + paragraphs + lists + images + custom modules, output clean Gutenberg blocks. The shortcode parsing is gnarlier than Elementor’s JSON parsing, hence the 1-2 day timeline delta.
№ 02The CSS class leak nobody warns you about
Divi inserts dozens of CSS classes into the rendered HTML: et_pb_section, et_pb_column, et_pb_module, plus per-module classes (et_pb_text, et_pb_button). These classes are tied to Divi’s stylesheet; remove Divi and they become orphan classes in the HTML.
The migration extraction strips these classes during the content port. The new theme uses its own block-level classes (clean, semantic, namespaced). The result is HTML that’s 60-70% smaller per page once Divi is decommissioned.
№ 03The 14-day migration timeline (Divi variant)
Day 1-3: Discovery, IA, Divi module inventory. Day 4-6: Extraction script + manual content cleanup (1 day longer than Elementor). Day 7-10: Custom block theme build. Day 11-13: Page rebuild on staging. Day 14: QA + Divi decommission + launch.
For Divi sites over 40 pages, the migration sometimes pushes to 16-17 days. The content-extraction pass is the variable; everything else stays on schedule.
№ 04Theme Options residue: the second cleanup pass
Divi has a Theme Options panel that stores ~200 settings in wp_options. Custom CSS, custom JavaScript, header/footer markup, color schemes, font choices. These options stay in the database even after Divi is uninstalled.
The cleanup pass: a SQL script that removes the et_-prefixed options post-migration. Same timing as the Elementor cleanup — 1-2 weeks after launch, not immediately. Keeps the rollback option open during the initial post-launch window.
№ 05Pricing math: same $5K-$8K, slightly more work
Divi migrations price identically to Elementor migrations because the deliverable is the same: a clean custom WordPress site with the original content ported and the old builder decommissioned. The extra 1-2 days of extraction work is absorbed in our pricing — we don’t pass it along as a line item.
National agencies sometimes charge a premium for Divi migrations (citing ‘complexity’). The complexity is real, but the right answer is a senior dev who’s done 30+ Divi migrations, not a 25% pricing bump.
⚠What to avoid
- Migrating Divi pages by copy-pasting the rendered HTML. The HTML carries Divi’s inline styles and class hooks. The new theme renders the old design on top of itself.
- Leaving Theme Options data in the database ‘in case we need it.’ The data is keyed to a plugin you’re decommissioning. It will never be useful. Clean it up at week 2 post-launch.
- Trusting Divi’s ‘export to standard WordPress’ feature. The export preserves Divi shortcodes wrapped in a fallback wrapper. It does not produce clean content. Use a proper extraction script.
Related questions
Go deeper
Three Ways to Start · No Sales Pitch
Want this analyzed on your site?
$500 audit. 5-day delivery. Refundable on engagement.
