When you download/export a layout, Divi maps that JSON file to its source context and therefore it must be imported into that same context; otherwise, you’ll see the error: “This file should not be imported in this context.”
If you’re unsure about the source context. of a downloaded file, you can open the JSON file in a text editor (you can also drag it into Chrome or Firefox) and you’ll see it start by stating its context:
Divi uses 3 different source contexts. The following shows where each of them was exported from, and therefore where they should be imported consistently in the same source context:
1. Context: “et_builder”
It has been exported from an individual Page/Post, or Theme Builder Layout
You should import it from the Visual Builder/Theme Builder > Portability.
2. Context: “et_builder_layouts”
It has been exported from the Divi Library / Divi Cloud.
You should import it in: Divi Library > Import & Export > Import.
3. Context: “et_theme_builder”
It has been exported from Divi > Theme Builder Templates Page > Portability
You should import it from Divi > Theme Builder Templates Page > Portability.
4. Theme Builder Template vs. Theme Builder Layout
On the Divi > Theme Builder page, you will see all the available Templates for your website. Each Template contains a Header, Body, and Footer Layout.
You can individually create/edit a Layout for your Header, Footer or Body by clicking the pencil icon, doing so will open the Theme Builder.
Note that when you export the Layout of that Header, Body, or Footer from the Theme Builder, they are actually exported as an “et-builder” context, so you need to import them according to context number 1 explained above.
A Header, Body or Footer Layout should be imported as an “et-builder” context.
🥳 That’s it!
👉 Import our Premium Layouts from your DonDivi account!
Already a DonDivi customer? Log in and Download for free our Premium Layouts directly from your DonDivi account!