Skip to content
Log in

Arrange content with nested content blocks

On this page

Use nested content blocks to control how content is arranged on a page, so the layout meets your product and brand needs.

Two-column layout

Here is a page layout where two content blocks are nested inside another one to form columns:

Two-column page layout with the width of each column marked

To create this layout:

  1. Add the text blocks. Create two content blocks with Content Template set to Text. Put the text for column one in the first block and the text for column two in the second. Each block takes a Title, Subtitle, and Content; a blank field is simply not rendered.

  2. Add a container for the text columns. Create a content block with Content Template set to Container and Layout Style set to Full width on smaller screens and two columns on larger. On the Related tab, add the two blocks from step 1 as children of this container. Give the first block Position 10 and the second Position 20. You can then use custom CSS to target this container and restrict its width to 1200px, as described in using CSS with content blocks.

  3. Style the background. Create a third content block with Content Template set to Container, and add the container from step 2 as its child. Assign custom CSS to this outer container to create a full-width background color or image.

Exploded view of the three nested content blocks, showing the outer background container, the two-column container, and the two text blocks

Load the page on your storefront. The two text blocks now sit side by side on a desktop screen, stack into one column on a phone, and the background color or image runs the full width behind them.

How the pieces relate

The Content Template on each content block determines which fields are used when StoreConnect renders that block. Once the blocks exist, use a block’s Identifier as your CSS selector to apply styles.

Was this article helpful?

Was this article helpful?