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.

Need help with your WordPress? I’ve made it easy to schedule a LIVE Zoom Call with me.

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_kit 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 →

21 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!

    • Awesome! Love to hear it whenever I can help out a fellow dev.

    • Hi Josh! That happened to me too. Did you find out why a new default kit was created ? And also, I do we make sure that the problem doesn’t happen again ? Thank you very much.

  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!

  6. Great post 🙂
    I encountered this today. After restoring an EBS snapshot the problem had gone away. I compared my wp_options table from the backup and found the elementor_active_kit option was different.

    select * from wp_options where option_name = ‘elementor_active_kit’;
    +———–+———————-+————–+———-+
    | option_id | option_name | option_value | autoload |
    +———–+———————-+————–+———-+
    | 169 | elementor_active_kit | 5 | yes |
    +———–+———————-+————–+———-+

    I found this post, confirmed the issue switched it over and the site was fixed!
    Curious to know if any of the people here have some common plugins. My initial thought is that perhaps some page duplication plugin is duplicating the default kit with it perhaps?

    Thanks again.

  7. brettkellyra

    This is huge. Like Josh, I’ve occasionally had a new Default Kit just show up and overwrite everything and, also like Josh, I’ve spent hours manually recreating everything. This is such a massive time saver. Thank you!

  8. We needed this info thank you

  9. The options page wouldn’t update the active kit, but after installing wp cli and running the command it worked like a charm! Definitely just yelled in excitement.

  10. This was super handy, however, what about if your site didn’t have a kit applied previously? We have created our own elements (footer, header etc which all have seperate id’s) so there is no overarching kit id that can replace this…is there a default value to apply no kit? ‘0’ just removed all the styling..

    • @Josh – interesting, are you sure your site didn’t have an Elementor Default Kit? Based on their docs (scroll to the bottom), the Default Kit automatically gets created. So I’m not sure of your scenario if you’re saying your site doesn’t have one. Could it be that your site has one, and you didn’t properly search for it in the admin?

  11. Thanks for amazing post!

    You may know the answer to the question why the elementor still uses its palette in CSS (elementor-kit-5 in my case) which looks pretty rubbishy, even though elementor_disable_color_schemes is “yes” and elementor_disable_typography_schemes is “yes”

    • Are you talking about this?

      Disable defaults in Elementor

      If so, I have trouble with that one too. When you’re using the Hello Elementor theme, it seems to me that is worded poorly (could be the case with other themes too). Somebody correct me on this if I’m wrong, but if you’re using Hello Elementor and you check these, it seems to me that you are making your site respect the colors you set in the Site Settings of Elementor.

      Anyway, sorry I’m no help with your question. Glad you liked the post.

  12. Hello, Michael. I went to the secret options page and I do not have an elementor_active_kit option there. I do not want to lose the themes I have set up (this would not take me hours to recreate, more like weeks). I am also not a coder. Is there anything else you recommend I can do to restore my original default settings rather recreate a new kit and lost theme styles. Thank you in advance!

    • Hmm…I’d want to take a closer look. I may have some time once I’m back in the office this week. You got time for me to take a look with you perhaps on Monday or Tuesday? If so, email me here mender at wenmarkdigital.com.

  13. THANK YOU SO MUCH! Just saved me!

Leave a Reply