Migrate Divi to Elementor: Staging First Guide
In this article
Migrating from Divi to Elementor on a staging site first lets you test the entire process without risking your live website. This guide walks you through the exact steps to move your content, layouts, and settings safely, so you can switch with confidence and minimal downtime.
What You'll Need
- A staging environment (most hosts offer one-click staging; if not, use a local tool like Local by Flywheel or a subdomain copy).
- Admin access to your WordPress dashboard on both live and staging sites.
- FTP or file manager access (for some steps, though not always required).
- Backup plugin (e.g., UpdraftPlus) or hosting backup feature.
- Elementor Pro (recommended for theme builder and dynamic content).
- A text editor to search/replace URLs if needed.
Step-by-Step
- Create a full backup of your live site. Use a backup plugin or your hosting control panel to download a complete backup of files and database. Store it offsite (e.g., cloud drive).
- Set up the staging site. In your hosting account, find the staging tool (often under "Staging" or "Dev Sites"). Create a staging copy of your live site. If your host doesn't offer staging, create a subdomain like staging.yourdomain.com and copy files/database manually, then update wp-config.php with new DB credentials.
- Log into the staging site's WordPress admin. Go to staging.yourdomain.com/wp-admin and log in with your admin credentials.
- Deactivate Divi and its associated plugins. In the Plugins screen, deactivate the Divi theme (you can't deactivate a theme, but you can switch to a default theme like Twenty Twenty-Four) and any Divi-specific plugins (e.g., Divi Builder, Divi Plus). Do not delete them yet.
- Install and activate Elementor and Elementor Pro. Go to Plugins > Add New, search for Elementor, install and activate. Then upload the Elementor Pro plugin ZIP file and activate it (if you have a license).
- Switch to a basic theme (e.g., Hello Elementor). Install and activate the Hello Elementor theme to avoid conflicts with Divi's global styles.
- Convert Divi content to Elementor. For each page/post that uses Divi Builder, open it in the WordPress editor. You'll see a notice "This content was built with Divi." Click the button to "Edit with Elementor" – Elementor will attempt to import the content. If it doesn't work, you may need to copy the content manually: open the Divi page, copy the text and images, then paste them into an Elementor page.
- Rebuild global layouts. If you used Divi Theme Builder for headers, footers, or templates, recreate them in Elementor Theme Builder. Go to Templates > Theme Builder, create new header and footer templates, and assign them to the entire site.
- Migrate custom CSS and settings. Copy any custom CSS from Divi Theme Options (or a child theme) into Elementor's Custom CSS (Elementor > Custom CSS) or the WordPress Additional CSS. Also, replicate global colors and fonts in Elementor's Site Settings (Elementor > Site Settings).
- Update menus and widgets. Check your menus in Appearance > Menus – they should still work, but if you used Divi's menu module, you may need to rebuild them using Elementor's nav menu widget.
- Test all pages and functionality. On the staging site, click through every page, post, and custom post type. Check forms, popups, sliders, and any dynamic content. Verify that images, links, and embeds work correctly.
- Fix any broken elements. Use the browser's inspect tool to identify missing styles or scripts. If a page looks broken, try rebuilding it with Elementor from scratch, or use the Elementor import feature to bring in a template.
- Run a search/replace on the database (if needed). If you moved the site to a staging URL, you may need to update URLs in the database. Use a plugin like Better Search Replace, or WP-CLI if comfortable, to replace the live URL with the staging URL. This ensures all internal links work.
- Final review on staging. Once everything looks good, do a final walkthrough. Test on mobile and tablet views. Ensure that Elementor's responsive settings are applied.
- Deploy to live. When you're confident, replicate the changes on the live site. The safest method is to repeat the same migration steps on the live site, or use a migration plugin (like All-in-One WP Migration) to push the staging site to live. Before pushing, take a fresh backup of the live site.
- Post-migration checks on live. After going live, clear all caches (browser, plugin, server). Check the site for any remaining Divi remnants. Deactivate and delete Divi and its plugins only after confirming everything works.
Common Mistakes
- Skipping the staging test. Many users migrate directly on live, causing downtime and broken pages.
- Not backing up before starting. Always have a restore point.
- Forgetting to convert shortcodes. Divi shortcodes (like [et_pb_section]) are not automatically converted; you must manually replace them.
- Leaving Divi active during testing. This can cause style conflicts.
- Not updating internal links. If you don't run a search/replace, links may point to the staging URL.
- Ignoring theme builder templates. Without recreating them, your header/footer will be missing.
Tips
- Use a child theme. If you have custom code in Divi's child theme, replicate it in a child theme for Elementor (or use a code snippets plugin).
- Start with a few pages. Test the conversion process on a single page before doing all.
- Use Elementor's import/export. Export your Elementor templates and settings from staging and import them into live to save time.
- Keep a log of changes. Note which pages need manual rebuilds; this helps during deployment.
- Check third-party integrations. Some plugins (like page builders' add-ons) may not be compatible; test them on staging.
Troubleshooting
- Content doesn't import. If Elementor fails to import Divi content, try copying the content manually. Open the Divi page, switch to the default editor, copy the HTML, and paste it into an Elementor page's HTML widget or use the Text Editor widget.
- Styling looks off. This is common because Divi and Elementor have different CSS frameworks. Rebuild the layout with Elementor's widgets and use global colors/fonts to match your brand.
- Broken images or links. Run a search/replace on the database to update URLs. Use a plugin like Better Search Replace and ensure you replace the full URL (including http/https).
- White screen after activating Elementor. This usually indicates a plugin conflict. Deactivate all plugins except Elementor and Elementor Pro, then reactivate them one by one to find the culprit.
- Menus not showing. If you used Divi's menu module, recreate the menu with Elementor's Nav Menu widget. Ensure the menu is assigned to the correct location in Appearance > Menus.
- Staging site is slow. This is often due to caching plugins or server resources. Clear cache and check with your host if needed.
Frequently Asked Questions
Can I migrate from Divi to Elementor without losing SEO?
Yes, as long as you keep the same URLs, page titles, and meta descriptions. Use a plugin like Yoast or Rank Math to export/import SEO settings. Also, ensure that redirects are set up if any URLs change.
Do I need Elementor Pro for migration?
Not strictly, but Elementor Pro is recommended because it includes the Theme Builder, which is essential for recreating headers, footers, and dynamic content that Divi's Theme Builder provided.
Will my Divi shortcodes work in Elementor?
No. Divi shortcodes are not compatible with Elementor. You'll need to manually replace them with Elementor widgets or use a converter plugin (though results vary).
How long does the migration take?
It depends on the size of your site. A simple site might take a few hours; a complex site with many custom layouts could take days. The staging process allows you to work at your own pace.
Can I revert to Divi after migrating?
Yes, if you keep a backup of your Divi site. However, once you've deleted Divi and its data, reverting is difficult. Always keep a backup until you're fully satisfied.
What about custom post types and WooCommerce products?
Custom post types and WooCommerce products are not tied to the page builder, so they will migrate fine. However, any custom layout templates for them (e.g., product page templates) need to be recreated in Elementor.