Back to blog
6 min read Tutorials

Copy Elementor Global Colors and Fonts to Another Site

Elementor keeps your global colors, global fonts and the rest of Site Settings in one place: the Kit, a hidden template whose settings are stored as a single custom field, _elementor_page_settings. Elementor’s own template export covers pages and templates, and full kit export is a separate tool. If you only want to copy the brand colors and fonts from one site to another, Import Export by RockStarLab can export that one field from the source site’s Kit and write it into the Kit of the other site.

PRO: export and import of Custom Post Types (Elementor templates are one) are part of the PRO plugin. We tested with Import Export by RockStarLab 2.2.14 and PRO 2.1.32, Elementor 4.3 and WordPress 7.1, copying four global colors, one custom color and two global fonts.

Short Answer

On the source site, export Custom Post Types filtered to My Templates (elementor_library) and the ID of the active Kit, with the columns ID, Title and Elementor Page Settings, as JSON. Change the ID in the file to the Kit ID of the target site. On the target site, import the file as Custom Post Types, post type My Templates, with Check for Existing Items by Field: ID and If Match Found: Update. Then clear Elementor’s cache.

Step 1: Find the Kit IDs

Each site has its own Kit, usually titled “Default Kit”, and the IDs differ. The quickest way to see the active Kit’s ID: open any page of the site, view the page source and search for elementor-kit-. The body tag has a class such as elementor-kit-1845; the number is the Kit ID. In our test the source Kit was 1845 and the target Kit was 8. Don’t go by the title: our source site had two templates called “Default Kit”, an old one and the active one.

Step 2: Export the Kit’s Settings

On the source site, in Import Export by RockStarLab > Export, choose Custom Post Types. On the Filters step, set Post Type to My Templates (elementor_library) and add ID equals the Kit ID:

Export filters: Post Type My Templates (elementor_library), ID equals 1845, 1 item available
Only the active Kit.

On the Fields step, the Elementor group has an Elementor Page Settings field. We exported three columns:

Export fields: ID, Title and Elementor Page Settings
The Kit’s settings are one field.

Choose JSON on the Format step. JSON keeps the settings readable as nested data; in our file the colors looked like this:

"_elementor_page_settings": {
    "system_colors": [
        { "_id": "primary", "title": "Primary", "color": "#6F4E37" },
        { "_id": "secondary", "title": "Secondary", "color": "#D4A373" },
        …
    ],
    "custom_colors": [
        { "_id": "c0ffee1", "title": "Cream", "color": "#FAF3E0" }
    ],
    "system_typography": [ … ]
}

Step 3: Point the File at the Target Kit

Open the file in a text editor and change "ID": 1845 to the target Kit’s ID, "ID": 8 in our case. Keep everything else as it is.

You can also remove settings you don’t want to copy. The settings object holds all of Site Settings, so besides colors and fonts it can include layout widths, buttons, form fields and other values you set in Site Settings. Whatever is in the object replaces the target Kit’s settings.

Step 4: Import into the Target Site

On the target site, back up the database, then in Import choose Custom Post Types and upload the JSON file. On the Field Mapping step, choose the post type My Templates and click Auto Map:

Mapped fields: ID, post_title, _elementor_page_settings and its parts system_colors, custom_colors, system_typography
Auto Map on the target site.

The preview shows the parts of the settings object as extra columns, such as _elementor_page_settings.system_colors. They are mapped too, but only the whole object is saved; the parts are not stored as fields of their own.

On the Options step, set Check for Existing Items by Field to ID, If Match Found to Update and If No Match Found to Skip, so nothing new is created if the ID is wrong. The import updated the Kit in one second.

Step 5: Clear Elementor’s Cache

Elementor turns the Kit settings into a CSS file. After the import, open Elementor’s Tools page (/wp-admin/admin.php?page=elementor-tools) and click Clear Files & Data under Elementor Cache, so the file is rebuilt with the new settings. The Kit stylesheet on the target site then contained the copied values:

.elementor-kit-8{
  --e-global-color-primary:#6F4E37;
  --e-global-color-secondary:#D4A373;
  --e-global-color-text:#2B2B2B;
  --e-global-color-accent:#E76F51;
  --e-global-color-c0ffee1:#FAF3E0;
  --e-global-typography-primary-font-family:"Playfair Display";
  …
}

Widgets that use global colors and fonts take their values from these variables. Widgets with their own fixed colors are not affected.

With WP-CLI or an AI Agent

For several sites, the same steps run from WP-CLI: export the Kit’s settings as JSON, put the target Kit ID into the file, import it by ID and let Elementor rebuild its CSS:

# on the source site
wp rsl-ie export --type=elementor_library --format=json --fields=ID,post_title,_elementor_page_settings --options='{"filters":[{"field":"ID","condition":"equals","value":"25220"}]}' --name=kit-settings --user=admin
# change "ID": 25220 to the target Kit ID in the file, then on the target site
wp rsl-ie import kit-settings.json --type=elementor_library --unique-field=ID --if-exists=update --options='{"if_not_exists":"skip"}' --user=admin
wp elementor flush-css

We ran this between two test sites with Import Export by RockStarLab 2.2.64 and PRO 2.1.57: export job 88096 wrote the source Kit’s colors and fonts, and import job 176 saved them into the target Kit 829 unchanged.

An AI agent connected to both sites through the WordPress MCP Adapter can do the round trip. WordPress itself gives the agent only read-only abilities for site, user and environment information; the export, the import and the custom field mapping come from the plugin:

With Import Export by RockStarLab, export the Elementor Page Settings of the active Kit on the source site as JSON, change the ID to the active Kit of the target site, and import it there by ID, updating only that Kit.

Tips

  • Custom color IDs: each custom color has an _id. Widgets refer to a global color by that ID, so keep the IDs as they are in the file.
  • Several sites: repeat Steps 3 and 4 for each site with its own Kit ID.

FAQ

Where does Elementor store global colors?

In the active Kit, a template of type “kit” in My Templates. All Site Settings, including global colors and fonts, are saved in its _elementor_page_settings field. The option elementor_active_kit holds the Kit’s ID.

How do I copy Elementor global colors to another site?

Export the source Kit’s Elementor Page Settings field as JSON, change the ID to the target Kit’s ID, import the file on the target site with Check by ID and Update, then click Clear Files & Data in Elementor’s Tools.

Does this copy my pages and templates too?

No, only the Kit’s settings. Pages and templates are separate items; export or sync them on their own.

Do I need Elementor Pro?

No. Global colors, global fonts and the Kit are part of free Elementor.

Get the free plugin on WordPress.org. Custom Post Types export and import are part of PRO.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE