Skip to content

Layout

This guide describes the Theme settings > Layout menu options.

Use the settings to define page margins, specify grid widths, and configure the spaces between areas of content throughout your store. Refer to Shopify help: Layout.

An example store's homepage with the Theme settings's Layout menu open in Theme editor.

In the previous image, on the left side, the Theme settings > Layout menu is displayed. The menu's Left and right margin slider is set to 12px (pixels). The slider sets a size for the page margins. Page margins are the empty or "white" space that's displayed on the left and right side of very store page. On the right side of the image, a store's Homepage is displayed in Theme editor. On the Homepage, the page margin slider setting is applied to frame the page's content.

For general guidance with adjusting a theme setting, refer to Settings overview and Shopify help: Theme settings.

Configure a layout

To configure a layout for margins, grid widths and spacing:

  1. Go to Theme settings > Layout.

    The Theme setting's Layout menu.

  2. Select a setting described in the following table.

    Note

    All pixel values in the Layout menu are relative to the size of your base font. To set a size for your base font, refer to Typography.

Setting nameDescription
Margins > Left and right marginAdjust the slider Left and right margin to set a size for page margins between 4px and 64px (pixels). Margins frame your content using empty or "white" space that's displayed on the left and right side of very store page.
Site width > Enable max site widthSelect the Enable max site width checkbox to turn on/off using the Max site width slider value as a maximum width for your store's pages. To use this setting, set the checkbox to on, and then adjust the Max site width slider to specify a maximum page width.
Site width > Max site widthAdjust the Max site width slider to specify a maximum width for your store's pages between 1280px and 2560px (pixels). To use this setting, set the Enable max site width checkbox to on.
Base grid > Column gapAdjust the Column gap slider to set a size for the space or "gap" displayed between columns. This setting applies to the tiles displayed inside sections that use a grid layout. The slider ranges between 4px and 64px (pixels). Refer to Customize grid layouts.
Base grid > Row gapAdjust the Row gap slider to set a size for the space or "gap" between rows. This setting applies to the tiles displayed inside sections that use a grid layout. The slider ranges between 4px and 64px (pixels). Refer to Customize grid layouts.
Media grid > Column gapAdjust the Column gap slider to set a size for the space or "gap" between columns. This setting applies to all media grids. Media grids are grid and carousel sections that contain media. The slider ranges between 4px and 64px (pixels). Refer to Customize grid layouts.
Media grid > Row gapAdjust the Row gap slider to set a size for the space or "gap" between rows. This setting applies to all media grids. Media grids are grid and carousel sections that contain media.The slider ranges between 4px and 64px (pixels). Refer to Customize grid layouts.
Media grid > Enable max grid widthSelect the Enable max grid width checkbox to turn on/off using the Max grid width slider value as a maximum width for the media grids displayed on your store's pages. To use this setting, set the checkbox to on, and then adjust the Max grid width slider to specify a maximum grid width. This setting applies to all media grids. Media grids are grid and carousel sections that contain media. Refer to Customize grid layouts.
Media grid > Max grid widthAdjust the Max grid width slider to specify a maximum width for your store's media grids between 1280px and 2560px (pixels). To use this setting, set the Enable max grid width checkbox to on. This setting applies to all media grids. Media grids are grid and carousel sections that contain media. Refer to Customize grid layouts.
Sections > Vertical spacing between sectionsAdjust the slider Vertical spacing between sections to set a size for the vertical, empty or "white" space displayed between sections of content. The slider ranges from 16px to 128px.
Sections > Inset sections that do not use the primary color schemeSelect the checkbox Inset sections that do not use the primary color scheme to turn on/off inset mode. With inset mode enabled:
  • Sections that do not use Color scheme 1 are displayed further away from the right side page margin.
  • Sections that do use Color scheme 1 are displayed at a standard distance from the right side page margin.
Sections > Section title desktop layoutSelect the radio buttons Section title desktop layout to set a default display style for section title text. The options are Left when possible and Always above. This setting applies to desktop display devices.