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


  1. Under Bricks → BricksUltimate → General Elements, enable CSS Grid Layouts and save.
  2. Reopen Bricks and find the CSS Grid category. Choose a two-to-six-column layout or one of Template One through Template Seven.
  3. Insert the layout and inspect its child Blocks in the Structure panel.
  4. Add your own images, headings, text, or other elements inside those children.
  5. Adjust native Bricks grid columns, rows, gap, alignment, and each child's row/column spans.
  6. At each responsive breakpoint, reset spans that no longer fit the reduced column count.

Controls and Settings


ControlPurpose and usage
Layout familyThe registration includes Grid Two through Grid Six and Template One through Template Seven. Each starts with its own container and child settings.
Native grid controlsEdit display:grid, columns, rows, auto-placement, gap, and alignment through the normal Bricks layout controls.
Child spansIndividual child Blocks may span multiple rows or columns. These settings must also make sense at smaller breakpoints.
ContentThe 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.

Related Documentation