HowTo: Restore Elementor’s “Default Kit” after accidentally deleting it

Recently one of my clients came to me for help. She had accidentally deleted Elementor’s “Default Kit” template. I’d never actually heard of Elementor’s “Default Kit”, but in the Elementor Docs, I learned that this template is where Elementor stores all its Theme Styles.

If you delete the Default Kit, Elementor will automatically create a new one, but that process will remove all the settings stored in your Theme Styles. In other words, “only delete this template if your goal is to completely reset your Theme Styles”. That wasn’t what my client wanted to do, so she called me in to fix the situation.

Step 1: Restore the Default Kit you deleted

My client’s first step was to restore the Default Kit she had deleted. However, after the restore, Elementor was still pulling its Theme Settings from the new Default Kit:

After the restore, Elementor was still pulling its Theme Styles from the new Default Kit.

Step 2: Update the “elementor_active_kit” option

Once we’d restored the original Default Kit, we could tell Elementor was still referencing the new Default Kit that it created when my client deleted the original Default Kit. I surmised this had to be a setting stored in the WordPress Options Table. So I pulled up /wp-admin/options.php to list all of the site’s options. Then I searched for options containing “elementor” and I found what looked like the key setting:

“elementor_active_key” appeared to be the setting we needed.

The setting which maps the Default Kit post to Elementor’s Theme Styles is “elementor_active_kit” (we could tell because its value matched the Post ID of the new Default Kit). So, to revert “elementor_active_kit” back to the old Default Kit, I used the WP CLI:

$ wp option update elementor_active_key POST_ID_OF_THE_OLD_KIT

Once I issued the above command, the Theme Styles were restored.

NOTE: It is possible to use /wp-admin/options.php to update options; however, I opted for the WP CLI to make sure I was only affecting one option.


Update 03/25/2021 – A commenter below needed help updating the “elementor_active_kit” value. They mentioned they didn’t follow what I was talking about when I referenced the WP CLI command above. So, I made a Loom to show how to do this via the GUI in the WP-Admin:

← Previous post

Next post →

9 Comments

  1. Thanks a lot Michael! Works like a charm!

  2. You’re a lifesaver! None of my clients have actually deleted the template, but for whatever reason two of my clients have a weird issue where a new default kit is generated and then applied, so the site resets to default styles. The old/original default kits are in there, so updating this wp_options value put the sites right back to normal!

    I’ve been going in manually and recreating the theme styles every time this happens. This is going to save me HOURS.

    Thank you, thank you!

  3. Oh my god .. THANK YOU SOOOOOO MUCH !!!

  4. Jonathan Lopez

    thanks for sharing, what plugin do you use to see worpress options on the dashboard? as in the screenshot you show

    • That’s not a plugin, that’s a standard feature of all WordPress installs. To see every option in any WordPress install, visit /wp-admin/options.php. There aren’t any internal WP admin links to the URL, it’s just there.

      • im no coder so im a little confused do i just paste $ wp option update elementor_active_key POST_ID_OF_THE_OLD_KIT into the option.php file, changing the post ID to my default kit, then upload options.php to the wp-admin root on FTP? or is this something i need to run in the database?

  5. Thanksssss the https://yoursite.com/wp-admin/options.php was life changing!

Leave a Reply