How can I export elementor global colors and Import using One Click Demo Importer?

How can I export elementor global colors and Import using One Click Demo Importer?

1 Like

Elementor global colors are stored in template kit settings, find your kit ID in Elementor > Templates (click All) you’ll see Default Kit there, note its ID.

Then hook it in OCDI after_import hook:

function envision_blocks_after_import() {
  update_option( 'elementor_active_kit', 189 ); // your kit ID here
add_action( 'pt-ocdi/after_import', 'envision_blocks_after_import' );
1 Like

When a user installs my theme they need to add the kit id manually? How do I manage every user template kit ID?

The ID will be assigned automatically after the demo import.

here is a quick fix for adding site settings with OCDI