Black Friday50% off every Pro template and membership with code50% off with Ends in 07days22hrs01min51secShop the sale →

Site Migration In Elementor Page Builder

There are several things you should pay attention to when migrating pages built with Elementor Page Builder. Migration with plugin Absolute URLs: If you are using a site migration plugin to migrate your site, make sure it can replace absolute URLs,…

Site Migration In Elementor Page Builder?

There are several things you should pay attention to when migrating pages built with Elementor Page Builder.

Migration with plugin

Absolute URLs: If you are using a site migration plugin to migrate your site, make sure it can replace absolute URLs, as Elementor Page Builder uses this kind of URL.

Programmatic migration

Replace URL behavior:

When writing your own code to migrate programmatically, keep in mind that the add_post_meta used by Elementor can strip JSON-escaped strings with the wp_unslash function of WordPress.

To tackle this problem when you search and replace in the database, you need to copy the code of the Replace URL tool of Elementor Page Builder, which you can find in WP-content > Elementor  > Includes > Utils

WP CLI:

You can also use the WordPress CLI to migrate your sites. Check integration with WP CLI for more information.

Migrating background photos

Background images are referenced in a CSS file that includes their URLs. You can set the CSS Print Method to inline instead of external files to avoid migration problems with background images without writing a script. You can do this by going to Elementor Page Builder, then clicking on Advanced > CSS Print Method > Internal Embedding > CSS print method which is inline on your WordPress dashboard.

After Migrating

Use the Replace URL method:

Now, you need to use the Replace URL tool to make sure that all URL instances have been changed. Even if you believe your plugin has already done this, some instances may have been missed because Elementor stores them in files instead of in the database. Follow these steps to solve this problem:

Step 1: Go to Elementor Page Builder, then click on Tools > Replace URL.

Step 2: Type your old and new URLs.

file

Rebuild the CSS:

When you finish migrating, you need to regenerate the CSS. This deletes the CSS and then creates the cache again. In some situations, you also have to clear your caching layers, as caching software can prevent Elementor from rewriting the CSS files.

Go to Elementor, then click on Tools > Regenerate CSS

file 7wRZRy637k

Troubleshooting

If you receive mixed media errors after migrating from http:// to https:// or if photos and other assets are missing when viewing the new site, refer to the After Migrating steps above.

If you find that the Text Editor widget’s editor panel is grayed out after migrating, there may be an extra character, such as a space, in your site’s new URL. To solve this problem, go to settings and click on General in the WordPress admin and enter the correct URL in the settings panel. (Note: you may not see the extra character, so you should delete the entire URL and type it again manually.)

file s7JarM33F4

file Rcqm1GQoqh

In conclusion

If you have any questions about this, don’t hesitate to leave a comment below. We will reply as soon as possible. Besides, you can also take a look at our Free Elementor Templates here to get a wonderful theme for yourself.

Image Credit: docs.elementor

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Stuck on a template?

Pro customers can open a ticket; everyone can read the documentation.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.