A section block for Gutenberg
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Marc b9257689a4
Update README.md
5 months ago
dist Fix: Removed unsupported block error by moving Lodash dependencies from Node to enqueue_script 6 months ago
src Fix: Removed unsupported block error by moving Lodash dependencies from Node to enqueue_script 6 months ago
.editorconfig First commit 6 years ago
.eslintignore First commit 6 years ago
.eslintrc.json First commit 6 years ago
.gitignore Run build script to include compiled js and css 6 years ago
README.md Update README.md 5 months ago
license.txt Add license 5 years ago
package.json Fix: Removed unsupported block error by moving Lodash dependencies from Node to enqueue_script 6 months ago
plugin.php Update plugin.php 5 months ago

README.md

WARNING: This plugin isn't actively maintained. If you find issues or want to add something, you may submit pull requests. But I would highly suggest using the available core blocks, which I'm sure now cover the features in this block.

Section block for Gutenberg

One of the main elements used for layout in pages, a section / container block is on the roadmap, but I needed one. Now. So Here it is!

Plus it's a good attempt at exploring and reusing the existing components, which are plenty. So it was fairly easy in the end.

image

Settings:

  • Spacing:
    image

  • Background image:
    image

  • Background color:
    image

kapture 2018-07-23 at 17 00 10

Changelog:

2023-11-16 - v.1.1.5

  • Fix: Add lodash to dependencies to prevent breaking in WP 6.4

2020-04-14 - v.1.1.4

  • Fix: Update various libraries, fix compatibility with WP 5.4

2019-02-25 - v.1.1.3

  • Fix: Update CGB Scripts to latest version, which fixes compatibility issue with Ghost Kit

2018-12-20 - v.1.1.2

  • Tweak: Show controls for wide and full alignment

2018-12-11 - v.1.1.1

  • Fix: Changed JS dependency from wp-blocks to wp-block-library

2018-11-17 - v.1.1.0

Hopefully the deprecation / migrate part will work properly, allowing users to keep their previously created blocks, despite the changes:

  • Feature: Adds Tag selector
  • Feature: Adds section text color
  • Feature: Adds spacing toggle

2018-11-17 - v.1.0.1

  • Fix; Fix deprecated error: Update to PanelColorSettings
  • Tweak: Fixed spacer slider styles
  • Fix: Update type parameter to new allowedTypes in MediaUpload

This project was bootstrapped with Create Guten Block.