I am an active community member and passionate concrete5 developer. My goal is to make useful, high quality add-ons to make your business more succesful and to grow concrete5. In case you are looking for a developer, I am available for work!

Thumbnail
Block Wrapper

Developed by

Intermediate
Intermediate

What it does

It wraps a '<div>' element 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. It's 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.

Why not a stack?

It's an option, but it kind of 'breaks' the idea of front-end editing. To edit the stack you have to go to the back-end. Also, because e.g. applying styles to a stack currently doens't work (tested in 8.4.0), the interface doesn't feel quite reliable.

Compatibility

  • PHP 5.6+
  • concrete5 8.0.0+

Notes

  • If you run concrete5 8.4.0+ an additional check will be performed to prevent unopened or unclosed wrappers. It's a nice protective safe mechanism to prevent HTML errors.
  • The add-on is pure PHP, so no unnecessary JavaScript or CSS you need to load.
  • This is a modernized version of the old 5.6 Block Wrapper.

Current Version: 1.0.1
Fully Translatable: Yes
Needs External Libraries: No
Compatible 8.0.0+
License: Standard
Support Response: Replies to tickets every few days.
Support Hosted: On concrete5.org
Needs extra server permissions: No
Needs Internet: No
Marketplace Tests:
Passed Automated Tests
Passed PRB Review