Layout · Gutenberg

Skewed Section block for WordPress

A content section with diagonal/angled top and/or bottom edges created via CSS clip-path. Place any blocks inside.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

A content section with diagonal/angled top and/or bottom edges created via CSS clip-path. Place any blocks inside.

Inspector panels on this block: Skew Shape, Background, Layout. Those titles come from index.js, not from a shared template.

Behavior controls: “Top Direction” options: Left Low → Right High, Left High → Right Low; “Bottom Direction” options: Left Low → Right High, Left High → Right Low; “Background Size” options: Cover, Contain, Auto; “Text Align” options: Left, Center, Right.

Where to find it

Gutenberg inserter → Layout → search “Skewed Section” (block name `blockenberg/skewed-section` in block.json). Style it in the sidebar after insert.

How to use Skewed Section block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Skewed Section”, insert it. Category: Layout.
  3. Configure inspector controls that exist on this block. Open Skew Shape. Set “Skew Top Edge”, “Top Angle (°)”, “Top Direction”, “Skew Bottom Edge”.
  4. Check the published page. The view script reads HTML data attributes: data-bg, data-bg-end, data-bg-img, data-bg-pos, data-bg-size, data-bottom-angle, data-bottom-dir, data-extra-pad. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Skew Top EdgeOn/off toggle in the inspector. Off by default. Saved as `skewTop`.
Top Angle (°)Numeric range control in the inspector. Range 1–15. block.json default: 4. Saved as `topAngle`.
Top DirectionSelect control; the chosen value is saved on the block. Options: Left Low → Right High; Left High → Right Low. block.json default: left-low. Saved as `topDirection`.
Skew Bottom EdgeOn/off toggle in the inspector. On by default. Saved as `skewBottom`.
Bottom Angle (°)Numeric range control in the inspector. Range 1–15. block.json default: 4. Saved as `bottomAngle`.
Bottom DirectionSelect control; the chosen value is saved on the block. Options: Left Low → Right High; Left High → Right Low. block.json default: left-high. Saved as `bottomDirection`.
Add Extra Padding for SkewOn/off toggle in the inspector. On by default. Saved as `paddingExtraForSkew`.
Use GradientOn/off toggle in the inspector. Off by default. Saved as `useGradient`.
Gradient Angle (°)Numeric range control in the inspector. Range 0–360. block.json default: 135. Saved as `gradientAngle`.
Background SizeSelect control; the chosen value is saved on the block. Options: Cover; Contain; Auto. block.json default: cover. Saved as `backgroundSize`.
Image Overlay Opacity (%)Numeric range control in the inspector. Range 0–100. block.json default: 0. Saved as `overlayOpacity`.
Min Height (px)Numeric range control in the inspector. Range 80–1200. block.json default: 400. Saved as `minHeight`.
Padding Top (px)Numeric range control in the inspector. Range 0–300. block.json default: 100. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–300. block.json default: 100. Saved as `paddingBottom`.
Content Max Width (px)Numeric range control in the inspector. Range 200–1600. block.json default: 1100. Saved as `contentMaxWidth`.
Text AlignSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: left. Saved as `textAlign`.
Colors — BackgroundColor control in the inspector. block.json default: #1e40af. Saved as `backgroundColor`.
Gradient EndColor control in the inspector. block.json default: #7c3aed. Saved as `gradientEnd`.
Overlay ColorColor control in the inspector. block.json default: #1e40af. Saved as `overlayColor`.
Text ColorColor control in the inspector. block.json default: #ffffff. Saved as `textColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Skewed Section block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Skewed Section”. It sits under Layout. After insert, open Skew Shape and set “Skew Top Edge”, “Top Angle (°)”, “Top Direction”, “Skew Bottom Edge”.

What makes Skewed Section different from other Blockenberg blocks?

A content section with diagonal/angled top and/or bottom edges created via CSS clip-path. Place any blocks inside. Inspector labels on this block include “Skew Top Edge”, “Top Angle (°)”, “Top Direction”, “Skew Bottom Edge”.

Is the Skewed Section Gutenberg block free?

Yes. Skewed Section ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Skewed Section to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Skew Shape, Background, Layout).

Related layout blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Skewed Section from the Gutenberg inserter.

Get Blockenberg