CSS Grid Templates
Start a layout with ready-made CSS grid containers and editable child Blocks. These templates are layout starting points, not a post query or a fixed-content widget.
Setup and First Use
- Under Bricks → BricksUltimate → General Elements, enable CSS Grid Layouts and save.
- Reopen Bricks and find the CSS Grid category. Choose a two-to-six-column layout or one of Template One through Template Seven.
- Insert the layout and inspect its child Blocks in the Structure panel.
- Add your own images, headings, text, or other elements inside those children.
- Adjust native Bricks grid columns, rows, gap, alignment, and each child's row/column spans.
- At each responsive breakpoint, reset spans that no longer fit the reduced column count.
Controls and Settings
| Control | Purpose and usage |
|---|---|
| Layout family | The registration includes Grid Two through Grid Six and Template One through Template Seven. Each starts with its own container and child settings. |
| Native grid controls | Edit display:grid, columns, rows, auto-placement, gap, and alignment through the normal Bricks layout controls. |
| Child spans | Individual child Blocks may span multiple rows or columns. These settings must also make sense at smaller breakpoints. |
| Content | The inserted Blocks are editable containers. They do not automatically fetch posts, products, or custom-field values. |
Static Composition Versus Query Layout
Use a grid template for a deliberately arranged composition, such as one large lead story beside smaller cards. For a repeated query with layout presets, consider Post Grid. You can place query-driven content in a grid, but repeating a child with a large span repeats that span too; inspect the complete result, not just the first card.
Responsive Order and Maintainability
Keep the source order meaningful for keyboard and screen-reader navigation. Visual reordering and dense packing can make the reading order confusing. Use content-driven dimensions, reasonable image ratios, and a consistent gap rather than fixing every card to a screenshot height.
Practical Example
Insert Template One, place a lead image in its spanning first column, and put two text/image cards beside it. On mobile, switch to one column and reset the lead item's row span so the content flows naturally.
Troubleshooting
- Missing templates: enable CSS Grid Layouts and reopen the editor.
- Unexpected empty space: inspect explicit tracks, inherited spans, and empty child Blocks.
- Mobile overflow: reset multi-column spans and check long content and image widths.