Block Wrapper

What it does

It wraps a '<div>' elements around one or more blocks. That element is called a wrapper or a container. You can add an ID, various CSS classes, or custom attributes to the wrapper. This is especially useful for developers who want to apply styling to a group of blocks.

Why not setBlockWrapperStart?

The problem with the setBlockWrapperStart is that *all* blocks get the same HTML structure. It's not easy to make an exception for one block without creating a new area.

Why not an HTML-block?

The HTML-block *could* do the same, but it's a bit too simple. For example, it won't give a fixed height to the closing DIV in editing mode.

Compatibility

  • PHP 5.6+
  • concrete5 8.0.0+

Note: This is a modernized version of the old 5.6 Block Wrapper.

View in marketplace