When working with Divi Builder, you can either export or import a layout. Thanks to this feature, you can save time in working on a page with Divi Builder. But sometimes, you will see the following error message when importing a Divi Builder layout.
Actually, the error message itself has provided a clue about the error. When you export a layout in Divi Builder, the exported layout is assigned a context to it. For instance, if you export a layout from an individual page/post, the exported layout is assigned an et_builder context. A layout assigned the et_builder context can only be imported from an individual page/post and cannot be imported from the Divi Library or Theme Builder. There are at least three layout contexts in Divi Builder.
- et_builder: For a layout exported from an individual page or post
- et_builder_layouts: For a layout exported from Divi Library (Divi -> Library)
- et_theme_builder: For a layout exported from Theme Builder (Divi -> Theme Builder)
How to know the context of the layout? You can open the JSON file of the layout you want to check the context of with a text editor such as Notepad or Notepad++. You can find the context in the beginning section of the file.
How to fix the problem
If you see the error message like the one we have covered above when importing a Divi layout, you can open the JSON file to check its context and make sure that you import the layout from the right place.
A layout with et_builder context should be imported from an individual page or post, a layout with et_builder_layouts context should be imported from Divi Library, and a layout with et_theme_builder context should be imported from Theme Builder.