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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Skewed Section”, insert it. Category: Layout.
- Configure inspector controls that exist on this block. Open Skew Shape. Set “Skew Top Edge”, “Top Angle (°)”, “Top Direction”, “Skew Bottom Edge”.
- 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
| Control | What the code does |
|---|---|
| Skew Top Edge | On/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 Direction | Select 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 Edge | On/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 Direction | Select 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 Skew | On/off toggle in the inspector. On by default. Saved as `paddingExtraForSkew`. |
| Use Gradient | On/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 Size | Select 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 Align | Select control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: left. Saved as `textAlign`. |
| Colors — Background | Color control in the inspector. block.json default: #1e40af. Saved as `backgroundColor`. |
| Gradient End | Color control in the inspector. block.json default: #7c3aed. Saved as `gradientEnd`. |
| Overlay Color | Color control in the inspector. block.json default: #1e40af. Saved as `overlayColor`. |
| Text Color | Color control in the inspector. block.json default: #ffffff. Saved as `textColor`. |
What the front-end script actually does
- 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.
When this is the right block
- A content section with diagonal/angled top and/or bottom edges created via CSS clip-path. Place any blocks inside — that is the job of Skewed Section, not a generic content block.
- Use it when you need the editor control labeled “Skew Top Edge”, which exists on this block’s inspector.
- It matches pages about skewed, diagonal, angled.
- Inserter grouping: page structure, sections, and composition.
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
Gradient Section
A full-width section with an animated CSS gradient background, headline, subtext, and dual call-to-action buttons.
Dark Hero
Dark glassmorphism hero for AI, SaaS and tech sites. Features glow effects, gradient text, optional floating stat badges, badge pill, and rich button controls.
Gradient Hero
Full landing page hero with animated gradient/mesh background, badge, headline, CTA buttons, and social proof row.
Page Header
A versatile page hero/banner section: eyebrow label, headline, subtitle, breadcrumbs, CTA buttons, and rich background options.
Section
A container section for organizing content with rows and columns.
Shape Divider
SVG shape dividers — wave, curve, triangle, tilt, zigzag — to create seamless section transitions.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Skewed Section from the Gutenberg inserter.