Do you want to learn how to import or export Gutenberg blocks?
The WordPress editor allows you to save your content as custom blocks and then export them to another WordPress website. This can save you a ton of time if you own multiple sites or create websites for clients.
In this article, we will show you how to easily export your WordPress Gutenberg blocks and import them to use on other sites.
Why Import / Export Your WordPress Gutenberg Blocks?
The WordPress block editor allows you to add content as blocks and then customize those blocks. For example, you might create a call to action using the Buttons block.
You can then make that button stand out by changing its background color, making the text bigger, and more. If you plan to use this content again, then you can save it as a reusable block in WordPress.
However, you can also export these reusable blocks and then use them on other websites. This can save you a ton of time and effort if you own multiple sites or you are a WordPress development agency that creates sites for clients.
With that being said, let’s see how you can import / export Gutenberg WordPress blocks.
How to Import / Export Your WordPress Gutenberg Blocks
If you haven’t already, then you’ll need to save the content you want to export as a reusable block. With that done, click on the ‘+’ button inside the WordPress content editor.
In the panel that appears, select the ‘Reusable’ icon.
You can then click on ‘Manage Reusable blocks.’
This takes you to a screen where you can see all your reusable blocks.
Simply hover over the block you want to export, and then click on the ‘Export as JSON’ link when it appears.
WordPress will now download the block to your computer as a JSON file.
To import the block into another WordPress blog or website, simply log in to that site and open the content editor. You can now open the block management screen by following the same process described above.
This time, click on the ‘Import from JSON button’ instead. In the popup that appears, select ‘Choose file.’
You can now select the JSON file you downloaded earlier.
After that, click on ‘Import.’
WordPress will now import the reusable block.
With that done, you can use the imported block on your WordPress website in exactly the same way you use any other reusable block.
We hope this article helped you learn how to import/export your WordPress Gutenberg blocks to use on other websites. You may also want to see our expert pick of the best drag and drop WordPress page builders or our guide on how to set up Google Analytics goals for your WordPress site.