Docs

Flex grid section

The Flex grid section of Local builds grids and collages of media cards and text cards, in four presets.

Applies to: Local 4.2.1 and later. Added in: Local 2.7.0. Last checked: 2026-10-13 against Local 4.2.1.

The Flex grid section builds grids and collages from two kinds of cards: media cards (an image or a video) and text cards (theme blocks over an optional image). You set the width and height of every card yourself, on a 12-column grid.

Where to find it: Online Store → Themes → Customize → Add section → Flex grid (or one of its other presets: Fullwidth media with text, Media collage, Text cards collage)

Theme editor with a Flex grid section open: Text cards with Caption, Empty space, Heading, Content group and Text blocks and a Media card in the sidebar; the panel shows Heading, Grid design (Desktop card height (minimum), Mobile card height (minimum), Fullwidth, Remove gap between cards), Typography, Section design, SEO and Visibility, beside a protein product grid.

Presets

The four presets are the same section with different starting cards. After you add one, you can change everything.

  • Flex grid: a mixed grid of media cards and text cards in different sizes.
  • Fullwidth media with text: one text card across the whole screen, with the text centered over its image. Use it as a hero banner.
  • Media collage: a full width collage of media cards with no gaps, plus one dark text card.
  • Text cards collage: light grey text cards around one tall media card.

How the grid works

On desktop the grid has 12 columns. Each card has:

  • Desktop columns (2 to 12): how many of the 12 columns the card covers. Two cards of 6 fill a row; three cards of 4 fill a row.
  • Desktop rows (1 to 4): how many rows the card is tall.

On phones the grid has 2 columns. Mobile columns sets 1 column (half the width) or 2 columns (the full width), and Mobile rows sets 1 or 2 rows. Hide on mobile hides the card on screens narrower than 768 px.

The cards fill the grid in the order of the blocks in the sidebar. Drag a card to move it.

Grid design

  • Desktop card height (minimum) and Mobile card height (minimum) (1 to 10, default 3) set the height of one grid row, relative to the page width. At 3, a desktop row is as tall as two of the twelve columns are wide; every step adds or removes a quarter of that. Cards grow taller when their content needs more space.
  • Fullwidth stretches the grid to the edges of the screen.
  • Remove gap between cards puts the cards edge to edge, for a collage.

With Fullwidth or Remove gap between cards on, the cards have square corners. Otherwise the corners follow Theme settings → Borders → Cards.

Typography

  • Text spacing sets the space between the blocks inside the text cards: Small (default), Medium, Large or Extra large.
  • Text padding sets the space between the text and the edge of the card: Small, Regular (default) or Large.

Media card

A Media card shows an image or a video and nothing else.

  • Image fills the card; Mobile image (optional) replaces it on phones.
  • Video file plays a Shopify-hosted video, muted and looping; the Image shows while it loads. Use different media on mobile plays Mobile video file on phones, at its own Mobile video aspect ratio.
  • Link makes the card clickable. Open link in a new window opens it in a new tab.
  • Hide border and Hide shadow remove the card border and shadow.

Text card

A Text card holds theme blocks (heading, text, buttons and more) and app blocks, with optional media behind them. See Blocks.

  • Image, Mobile image (optional), Video file and the mobile video settings work as in the media card and sit behind the blocks.
  • Text alignment places the blocks in one of nine positions (default Left bottom).
  • Text container width sets Medium or Large (default) text width.
  • Overlay tints the media so the text stays readable; Text sets the text color; Hide border and Hide shadow remove the border and shadow.
  • Link makes the whole card clickable.

When a text card has its own Link, the links inside it (buttons, text links) do not work. Leave Link empty when the card has buttons.

Setting up a Flex grid

Add the section

Select Add section and choose one of the presets: Flex grid, Fullwidth media with text, Media collage or Text cards collage.

Set the row height

In Grid design, set Desktop card height (minimum) and Mobile card height (minimum). Turn on Fullwidth or Remove gap between cards for a collage.

Add the cards

Select Add block in the section and choose Media card or Text card. Drag the cards into the order you want.

Size each card

Select a card and set Desktop columns and Desktop rows. Make the columns of each row add up to 12, so the rows have no holes. Then set Mobile columns and Mobile rows.

Fill the cards

Add the media to each card. In text cards, add blocks with Add block inside the card and set Text alignment.

Why does my grid have empty spaces?

Because the columns of a row do not add up to 12. A row with cards of 4 and 6 columns leaves 2 columns empty. Change Desktop columns so each row adds up to 12, or move a smaller card into the gap.

Can I round the corners of the cards?

Yes, with Theme settings → Borders → Cards. The Flex grid has no corner setting of its own, and the corners are square when Fullwidth or Remove gap between cards is on.

All Flex grid settings

Every setting, with its type and default.

On this page