Skip to content

BuroMeta/gutenberg-section-block

 
 

Repository files navigation

Note: The aim of this plugin is to fill a gap in the default layout blocks until a similar one is built into core. So it receives the minimum maintenance until then.

Modifications in this Fork:

  • Removed Background Image setting
  • Removed Spacing setting
  • Removed Select for tagName. tagName 'section' is good enough for us
  • Added a Selectbox with css classes. The list can be populated by an ACF Option field named 'section_classes' of type 'Repeater'. This field should have to subfields 'label' and 'value'.

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:

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.

About

A section block for Gutenberg

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 62.9%
  • SCSS 19.2%
  • PHP 17.9%