Skip to main content

Blocks

Your theme decides how your pages are laid out. Sometimes you want to add something of your own in a fixed spot: opening hours for the holidays above the footer, a note about delivery times below the price on every product page, or a banner at the top of your home page. That is what blocks are for.

A block is a small piece of content you build yourself with the same drag-and-drop elements as your pages, such as a heading, text, an image, a button or columns. You then choose where in your theme it appears and on which pages. You find this under Design → Blocks.

Available with a custom theme

Blocks are available for websites that run on a custom theme. Does your website use one of the standard designs? Then you will not see the Blocks item in the menu.

Spots in your theme​

Your theme has fixed spots where extra content can go. The theme developer places them around the parts of each page. Their names tell you where they are, for example:

  • footer_before: just above the footer, on every page.
  • index_before and index_after: at the start and the end of your home page.
  • product_price_after: right below the price on a product page.
  • category_before: at the top of a category page.

A name that ends in _before sits just before that part of the page, _after just after it. When you build a block, you pick one spot from the list.

The list shows the spots your theme really has. If your theme has not reported its spots yet, you see the standard spots every theme is expected to have, and a note at the top of the screen says so. Once the theme developer publishes a new version, the list matches the theme exactly.

Building a block​

  1. Go to Design → Blocks and click New block. You can also click Add block here next to a spot that already has blocks.
  2. Give the block a name, such as "Christmas opening hours". Only you see this name.
  3. Choose the spot in the theme where it appears.
  4. Choose where it shows under Show on (see below).
  5. Drag elements from the left into the area on the right, just like on a page, and click an element to change its text and settings.
  6. Click Save block.

A block can hold the elements that fit inside a page section, such as headings, text, images, buttons, icons, columns, USPs, contact details, opening times, a FAQ or a call to action. Heavier elements that belong to a full page, such as product lists or videos, are not available in a block.

Choosing the pages a block shows on​

Under Show on you choose one or more kinds of pages:

  • All pages
  • Homepage
  • Pages: your regular content pages, including the page that lists your blog posts.
  • Category pages: your category pages and the product overview.
  • Product pages
  • Blog: your blog posts and tag pages.

A block for All pages appears on every page that has its spot. Pages like the shopping cart, search results and the customer account only show blocks set to All pages.

Keep in mind that a spot only exists on the pages it belongs to. A block on product_price_after only ever appears on product pages, whatever you choose here.

Several blocks in one spot​

One spot can hold several blocks. They appear in the order you see on the Blocks screen, the top one first. Drag a block by its handle to change the order. If an app you installed also adds something to the same spot, the app's content comes first and your blocks follow.

Showing and hiding a block​

Every block has a switch. Turn it off to hide the block from your website without deleting it, for example to keep your holiday opening hours ready for next year. Turn it on again when you need it.

When a spot disappears​

If you switch to another theme, or your theme developer removes a spot, a block on that spot can no longer be shown. The Blocks screen marks it with Not in your theme. The block is not deleted: it appears again as soon as the spot is back. You can also open the block and choose another spot for it.

Translating blocks​

If your website is available in more than one language, translate your blocks on the Translations page. Choose Block as the content type and click Translate next to the block. Anything you leave blank is shown in your main language.

Frequently asked questions​

Why do I not see Blocks in the menu?​

Blocks are available for websites that run on a custom theme. Websites on one of the standard designs do not have this menu item.

I saved a block but I do not see it on my website. Why?​

Check that the block's switch is on, that it has at least one element, and that you are looking at a page type you chose under Show on. Also check that the spot exists on that page: a spot like product_price_after is only on product pages. If the block is marked Not in your theme, choose another spot.

Which spot should I choose?​

Look at where you want the content on your website and pick the spot named after that part of the page. Not sure? Spots like footer_before, index_before and category_before are a safe start. Your theme developer can tell you exactly where each spot sits in your theme.

Can I use the same content in two spots?​

Each block has one spot. Build a second block with the same content for the other spot.

Does a block change the design of my theme?​

No. A block uses your theme's own colors, fonts and rounded corners, so it looks like part of your website.