-
Notifications
You must be signed in to change notification settings - Fork 5
Blocks Section
Category: Design | Keywords: section, stack, vertical, layout, container
Create vertical stacking containers for organizing content areas. Perfect for page layouts, hero sections, and content sections. Maintains centered, constrained layouts with full-width backgrounds.
Key Features:
- Vertical flex layout (auto-converts to Row when horizontal)
- Width constraint system (enabled by default, typically 1140px)
- Overlay color support for image backgrounds
- Hover effects with context propagation to child blocks
- Semantic HTML elements (section, article, header, footer, main)
- Add Block → Search "Section" in Design category
- Add Content → Insert blocks (headings, paragraphs, images, buttons)
- Configure Width → Constrain Inner Width: ON (default, 1140px)
- Style → Background, padding, overlay color
- Full width alignment + background image
- Overlay Color: Dark semi-transparent
- Min Height: 100vh | Justification: Center
- Content: H1 + Paragraph + Buttons
-
Constrain Inner Width: ON (default) - Centers content with max-width
- ON: Full-width background, centered content (1140px)
- OFF: Content spans full container width
- Max Content Width: Custom width (960px, 1140px, 1200px, 1400px)
When to Disable:
- Full-width galleries/images
- Nested sections (parent already constrains)
- Intentional edge-to-edge designs
Orientation: Vertical (changing to Horizontal auto-converts to Row block)
Justification (vertical distribution):
- Top: Items at top, space below
- Center: Centered, equal space top/bottom (hero sections)
- Bottom: Items at bottom, space above
- Space Between: Items spread, space distributed
- Background: Color, gradient, or image
- Text Color: Cascades to child blocks
- Overlay Color: 80% opacity over background images (improves text readability)
Hover Settings (interactive sections):
- Hover Background/Text Color
- Hover Icon/Button Background (propagates via context to DesignSetGo blocks)
HTML Element: div, section, article, aside, header, footer, main
-
<section>: Page sections (most common) -
<article>: Blog posts, independent content -
<header>: Page header (once per page) -
<footer>: Page footer (once per page) -
<main>: Main content (once per page)
- Alignment: Full (typical for sections)
- Background Image: Add with cover, center, no-repeat
- Spacing: Padding (XL top/bottom typical), margin, block gap
- Dimensions: Min Height (100vh for full-height, 500px for heroes)
- Typography: Font size, line height (cascades to children)
- Border: Color, style, width, radius
- Shadow: Box shadow for elevated sections
- Min Height: 100vh | Justification: Center
- Background: Image + overlay color (dark, 80%)
- Content: H1 + Paragraph + Buttons
- Constrain: ON (1140px)
- Background: Light color
- Padding: XXL top/bottom
- Content: H2 + Paragraph + Grid (3 columns)
- Constrain: ON (1140px)
- HTML Element:
<article>or<section> - Constrain: ON (960px for readability)
- Padding: XL top/bottom
- Content: Headings, paragraphs, images
- Background: Brand color/gradient
- Text: White (high contrast)
- Justification: Center
- Content: H2 + Paragraph + Button
- Constrain: ON (800px)
- HTML Element:
<footer> - Background: Dark color
- Text/Link Color: Light
- Content: Grid (3-4 columns) + links
- Constrain: ON (1140px)
- Use full-width with constrained inner content
- Alternate background colors between sections
- Use adequate padding (XL or XXL)
- Set semantic HTML elements
- Use overlay colors for text over images
- Combine Section + Grid/Row for complex layouts
- Use same background for all sections
- Nest sections unnecessarily
- Skip section headings
- Forget to test mobile
- Use images without overlay
<header> → Header Section (logo, nav)
<main>
<section> → Hero (background image, overlay)
<section> → Features (light bg, grid)
<section> → Content (white bg)
<section> → CTA (brand color)
</main>
<footer> → Footer Section (dark bg)
Section (full-width, constrained)
└─ Grid (3 columns)
├─ Feature 1
├─ Feature 2
└─ Feature 3
Full-width with constraint ON:
┌───────────────────────────┐
│ /// Full-width bg ///// │
│ ┌─────────────┐ │
│ │ Constrained │ │
│ │ 1140px max │ │
│ └─────────────┘ │
└───────────────────────────┘
Semantic HTML:
- Use
<section>for distinct content areas - Use
<header>,<footer>,<main>once per page - Use
<article>for independent content
Heading Hierarchy: H1 → H2 → H3 (never skip levels)
Color Contrast: 4.5:1 minimum for text, use overlay for images
Keyboard: Logical tab order, visible focus states
Content not centering?
- Verify Section alignment: Full Width
- Enable "Constrain Inner Width"
- Check theme overrides
Background image not showing?
- Set Background Size: Cover
- Add Min Height (e.g., 500px)
Overlay not visible?
- Set background image first
- Then set overlay color in Color panel
Vertical justification not working?
- Set Min Height for section (justification needs extra space)
Full-Height Sections: Min Height: 100vh + Justification: Center
Alternating Backgrounds: White → Light Gray → Brand Color → White
Width Guidelines:
- 960px: Text-heavy (blog posts)
- 1140px: General content
- 1200-1400px: Wide feature sections
Combining Blocks: Section → Grid (features) | Section → Row → Image + Text
Version 1.0.0 | WordPress 6.4+ | Report Issues
Auto-generated from
docs/blocks/SECTION.md. To update, edit the source file and changes will sync on next push to main.
- Accordion
- Blobs
- Breadcrumbs
- Card
- Comparison Table
- Countdown Timer
- Counter Group
- Divider
- Flip Card
- Form Builder
- Grid
- Icon
- Icon Button
- Icon List
- Image Accordion
- Map
- Modal
- Modal Api Reference
- Modal Auto Triggers
- Modal Fse Compatibility
- Modal Gallery Navigation
- Modal Next Phase
- Modal Performance Fixes
- Modal Security Audit
- Modal Security Fixes Summary
- Modal Trigger
- Pill
- Progress Bar
- Reveal
- Row
- Scroll Accordion
- Scroll Gallery
- Section
- Slider
- Table Of Contents
- Tabs
- Timeline
- Animation
- Background Video
- Block Animations
- Clickable Group
- Custom Css
- Expanding Background
- Grid Mobile Order
- Grid Span
- Max Width
- Responsive Visibility
- Reveal Control
- Scroll Parallax
- Sticky Header
- Text Alignment Inheritance
- Text Reveal
- Ai Assisted Development
- Best Practices Summary
- Block Controls Organization
- Block Development Best Practices Comprehensive
- Block Exclusion Guide
- Control Reorganization
- Design System
- Wordpress Block Editor Best Practices
- Color Controls Pattern
- Custom Css Filters
- Performance Css Strategy
- Width Css Strategy Implementation
- Width Layout Patterns
- Antigravity Audit
- Card Block Audit
- Claude Audit
- Comprehensive Audit
- Cursor Audit
- Scroll Accordion Stacking Notes
- Security Review 1.2.1
- 2026 02 11 Icon Search Aliases Design
- 2026 02 14 Overlay Header Design
- 2026 02 15 Deactivation Block Migrator Design