Lazy Blocks – Gutenberg Blocks Constructor

Description

Lazy Blocks is a Gutenberg blocks visual constructor for WordPress developers. You can create custom meta fields as well as blocks with output HTML. Add editor controls to your blocks using drag & drop visual constructor. Create post templates with predefined blocks (any post type).

Links

Features

  • Create blocks with output code
  • Create blocks for meta custom fields
  • Handlebars used for blocks output
  • Export to PHP
  • Show controls in block content / inspector
  • Controls available:
    • Repeater
    • Text
    • Textarea
    • Number
    • Range
    • URL
    • Email
    • Password
    • Image
    • Gallery
    • Rich Text (WYSIWYG)
    • Code Editor
    • Inner Blocks
    • Select
    • Checkbox
    • Toggle
    • Color Picker
    • Date Time

Screenshots

  • Blocks constructor
  • Posts templates
  • Block in Gutenberg editor

Installation

Make sure you use WordPress 5.0.x. As alternative you need to install the Gutenberg plugin to use Lazy Blocks.

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of LazyBlocks, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type LazyBlocks and click Search Plugins. Once you’ve found our plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking “Install Now”.

Manual installation

The manual installation method involves downloading our LazyBlocks plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains instructions on how to do this here.

Reviews

Awesome plugin

Stunnig plugin. It allows me to quickly customize Gutenberg blocks for my customers. A real time saver!

Very powerful! Now I get Gutenberg!

Really well executed and opens up the power of Gutenberg! As a website developer, I've had mixed feelings about Gutenberg - whether it makes things easier or harder for my clients. But Lazy Blocks has tipped me over and I now see the power of it. Say good-buy to clunky shortcodes, just build a custom block instead! It's so easy to use, the interface is similar to ACF. I'd say it's the most powerful WordPress plugin since ACF! If ACF had their custom block builder out of beta I probably would have tried it first but instead I gave Lazy Blocks a go. I do share another reviewer's concern about depending on the plugin and whether it will be around in a few years time. But I guess if it gets popular it increases the likelihood of it sticking around. WordPress should talk to the plugin author about rolling this in to the core - it would really unleash the power of Gutenberg! One minor gripe/suggestion: it would be very useful if you could use any HTML code in the Rich Text field in HTML mode. E.g. I made a FAQ block and I needed to put a table in one of the FAQs. The Rich Text field would strip out the table tags so I ended up having to use a plain textarea instead. This might be a Gutenberg issue and not a Lazy Blocks issue.

super helpful block creation tool!

I tried this plugin after I used the ACF Block creation tool previously. First of all: it's much better to use maybe because it's focusing on block creation. I really love the template creation filters (I'm not using the code meta box because I find myself too limited through the handlebars syntax). It's just like working with ACF, which is great, but much better! But: I'd love to have some extra field types or filters to create them at my own. I'd also think about adding some extra buttons to the WYSIWYG Editor because bold, italic, strikethrough and links are just not enough. What about lists etc.. But all in all. It's so easy to create Blocks! Keep going!!!

Awesome project. I love you!

This plugin is the most important one for page developers that want to utilize Gutenberg. After the Block API seems very complicated for adding simple templates, this is just awesome. This is the way, we will overcome external page builders in the long term. Saying that, I don't dislike regular page builders, but I like getting rid of external and also expensive dependencies. Thank you very much for this and be prepared for contributions.
Read all 14 reviews

Contributors & Developers

“Lazy Blocks – Gutenberg Blocks Constructor” is open source software. The following people have contributed to this plugin.

Contributors

“Lazy Blocks – Gutenberg Blocks Constructor” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Lazy Blocks – Gutenberg Blocks Constructor” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.3

  • fixed controls save when updating Lazy Blocks post in WordPress 5.1

1.4.2

  • added lzb_handlebars_object action inside init
  • trim class attribute value on frontend output
  • fixed loading Templates admin page and select initialization when more then 1 template added
  • fixed Range control with Save in Meta option
  • fixed JS error on all admin pages
  • fixed Handlebars PHP 7.3 error

1.4.1

  • added action to add Handlebars custom helpers (info in documentation)
  • added filter to disable frontend block wrapper of the block (info in documentation)
  • improved columns in admin list of lazy blocks
  • extended list of symbols that need to be removed from the block slug
  • fixed PHP output for frontend if HTML output is empty
  • fixed losing Frontend & Editor output data when added output PHP filters

1.4.0

  • added support for blocks PHP preview rendering in Editor
  • added toggle button in Repeater control to toggle all rows
  • added block slug validation and automatic creation in constructor
  • added descriptions to additional block fields in constructor
  • added new attribute blockUniqueClass that will adds automatically on each Lazy block
  • added title on Image and Gallery attributes object
  • changed Editor rendering to AJAX also for Handlebars templates
  • changed output for lazy blocks – always added wrapper with block class

1.3.2

  • added unique blockUniqueClass attribute to each lazy block attributes and in editor wrapper

1.3.1

  • added unique blockId attribute to each lazy block
  • simplified enqueue in admin templates page
  • fixed do_shortcode wrong attributes output (reserved data and hash attributes)
  • fixed Range control saving value

1.3.0

  • added filter for output frontend PHP of blocks (read in documentation)
  • added Allow Null option to Select control
  • added Help option in controls
  • added Placeholder option in controls
  • added all existing categories in block categories selector
  • fixed gallery control editable images
  • fixed dropzone position in image and gallery controls
  • fixed custom category title changing to slug
  • fixed automatic fill of control name in constructor
  • fixed date control error in WP 5.0
  • minor changes

1.2.2

  • fixed templates loading in Gutenberg 4.5
  • fixed do_shortcode work with Image control value

1.2.1

  • fixed controls errors in Gutenberg 4.2.0 (Gallery, Image, Code Editor)

1.2.0

  • added Inner Blocks control
  • added support for custom frontend render function (use PHP instead of Handlebars) https://lazyblocks.com/documentation/blocks-code/php/
  • added possibility to resort Repeater rows
  • changed Repeater control styles
  • disabled autofocus in URL control
  • fixed URL input width
  • fixed Number control value save

1.1.1

  • added RichText control

1.1.0

  • added possibility to use all registered blocks in posts templates
  • added selector with search and block icons to easily find and add blocks to templates
  • added Free Content block to use in templates when template locked
  • added + button inside Repeater block
  • added Range control
  • added Color Picker control
  • added Date Time Picker control
  • added Documentation link in admin menu
  • improved URL control to search for available posts in blog

1.0.4

  • fixed catchable fatal error when use do_shortcode Handlebars helper

1.0.3

1.0.2

1.0.0

  • Initial Release