Skip to content

Export / Import

Lazy Blocks provides multiple ways to share your custom blocks and templates between WordPress installations.

Export Options

JSON Export

Export blocks and templates as JSON files for easy import on other sites:

Export options in Lazy Blocks

PHP Export

Generate PHP code to include blocks in your theme or plugin:

The Lazy Blocks plugin must be active for exported PHP code to work.

Export Methods

Single Block Export

Export individual blocks directly from the blocks list:

Single block export option

Bulk Export

Export multiple blocks at once using bulk selection:

Bulk export selection

Best Practices

  1. JSON Export: Use when

    • Moving blocks between sites
    • Sharing blocks with other users
    • Creating block backups
  2. PHP Export: Use when

    • Including blocks in themes
    • Building plugins
    • Version controlling blocks

Try Demo Blocks

Download our demo blocks package containing examples of all available controls:

Download Demo Blocks

After downloading, unzip the file before importing into WordPress.

Was this article helpful?