-
Notifications
You must be signed in to change notification settings - Fork 5
Extensions Grid Mobile Order
Version: 1.0.0 Category: Layout & Positioning
The Grid Mobile Order extension allows you to control the visual stacking order of blocks inside a Grid container on mobile devices (screen width ≤ 767px). This solves the common problem of alternating-row layouts stacking in an undesirable order on small screens, without requiring any changes to the HTML structure.
Controls are only visible when a block is placed inside a designsetgo/grid container.
- Add a Grid container block
- Add child blocks inside the grid
- Select any child block
- In the Inspector Controls, find the Mobile Order control
- Set a value (0-10) — lower numbers appear first on mobile
| Setting | Type | Default | Range | Description |
|---|---|---|---|---|
| Mobile Order | Number | 1 | 0-10 | Controls the visual order of this item when the grid stacks on mobile |
- 0 moves the item to the top on mobile
- Lower numbers appear first
- Reset button returns the value to the default (1)
- Only visible when the block is inside a Grid container
The extension adds a dsgoMobileOrder attribute to blocks. On the frontend, this is output as a CSS custom property (--dsgo-mobile-order) which is applied via a media query:
@media (max-width: 767px) {
[style*="--dsgo-mobile-order"] {
order: var(--dsgo-mobile-order);
}
}This approach:
- Only affects mobile layouts (≤ 767px)
- Uses CSS
orderproperty — no DOM reordering - Has zero impact on desktop/tablet layouts
- Works with any block placed inside a Grid container
This extension adds its attribute to all blocks (unless excluded via the Block Exclusion settings). However, the inspector control only renders when the block detects a designsetgo/grid parent.
- Hero sections: Ensure the heading appears above the image on mobile even if the image is first in the grid
- Alternating content rows: Control which side appears first when columns stack
- Feature grids: Prioritize the most important features at the top on mobile
- Card layouts: Reorder cards for mobile reading flow
- Use sparingly — natural document order is usually best
- Test on actual mobile viewports to verify the stacking behavior
- Remember that
order: 0moves items before the defaultorder: 1 - Screen readers follow DOM order, not visual order — keep accessibility in mind
Auto-generated from
docs/extensions/GRID-MOBILE-ORDER.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