Include Lazy Blocks within theme or plugin

Lazy Blocks provides a powerful solution for creating custom blocks and comes as a separate plugin. However, you may include Lazy Blocks inside your theme or plugin code.

How to include plugin files

To include Lazy Blocks within your theme or plugin, please download the appropriate Lazy Blocks plugin files and copy them into your theme or plugin. We recommend using the folder inc/lzb within your product files.

Next, use the following code as a starter to customize and include the Lazy Blocks plugin into your theme or plugin.

Was this page helpful?