Open any page from Pages and you are in the page builder. On the left is the list of blocks, top to bottom, in the order they appear on the page. On the right is a live preview of the page.
Take care. Adding, moving, copying, hiding and removing a block happen straight away: there is no separate Save for them. On a page that is Live, customers see each change at once, and the same goes for a block's settings once you press its Save. For a big rework, build it on a new draft page first, then copy it across (see Copying a whole layout below).
The buttons along the top
| Button | What it does |
|---|---|
| Add a block | Opens the block picker and adds the block you choose at the bottom of the page. |
| Copy layout | Copies every block on the page, with its pictures and words, so you can paste it into another page or another shop. |
| Paste layout | Opens a box to paste a layout copied with Copy layout. |
| Page settings | Opens the title, address, status and search result settings, and the Delete this page button. |
| Preview | Only on a narrow screen such as a phone: opens the preview, which otherwise sits beside the list. |
Each block in the list
Every row shows the block's name and a few words saying what it is set to. A block you have named shows your name, with the kind of block under it. A Twig block you have not named shows the first comment in its code, or its first heading. A Hidden label means it is hidden, and Phones or Computers means it only shows on one kind of screen. On the right of each row are five small buttons:
| Button | What it does |
|---|---|
| Pencil | Gives the block a name of your own, up to 60 characters, such as Ending today or Top slider. Type it and press Save (or Enter). Empty the box and save to take the name off. Names come with the block when you copy it or copy the whole layout. |
| Eye | Hides the block. It stays in the list, marked Hidden, but customers do not see it. Press again to show it. |
| Two squares | Makes a copy of the block, with the same settings, straight below it. |
| Plus | Adds a new block straight below this one. |
| Bin | Removes the block. |
Adding a block
- Press Add a block at the top (adds at the bottom), Add a block at the bottom under the list, or the plus on a row (adds just below that row).
- The picker shows every block in groups. Type in Search blocks to find one by name or by what it does. At the top, Ready-made has blocks already set up: Ending today (a red grid of the ones closing today, soonest first, gone on a quiet day) and Featured (a purple grid of the competitions you tick). Change them afterwards like any other block.
- Click the block you want. It is added and opens, ready for its settings.
Changing a block's settings
- Click the block's row to open it. Its description is shown at the top.
- Change what you want. Not saved yet appears beside the button until you save.
- Press Save. A message says the block is saved and the preview reloads.
- Click the row again to fold it away.
Some blocks have nothing to set and say "Nothing to set: this block fills itself from the site." Every block, including those, has Show on: Everywhere, Phones only or Computers and tablets only. Press Save after changing it.
Many blocks have a Look: the same facts drawn a different way. Winner photos can be a wall of polaroids, a grid, a film strip, a spotlight, cards or a collage; Instant wins today an odometer, a stat line, a ticker or a dial; the trust strip a strip, cards, a sentence or badges; the live winners rail a rail, a stack, bubbles or a ticker; How to play rings, numbered, tiles, a line or folded; the newsletter box a panel, a strip, a card or a line; the social links chips, circles, a card or a bar; the Spotlight still, or growing into place as it scrolls up; Moving words solid and outline, solid, or outline. The first look in each list is the one the block starts with. Together with the header, footer, competition page and corners settings in Settings, General, the hero layouts and the card designer, no two shops need look the same.
Blocks on a shop with the Vault look
With the Vault look on (Set up, My site's look, Overall look), some blocks wear their Vault design: the hero, Competition grid, Today's draws, Moving words, Instant wins today, Character, Winner photos, the jackpot, How to play, Social links and the Instant wins strip. Open one and the top of its settings says so in one sentence. Settings the Vault design does not use are hidden there, and that sentence lists them, so nothing you change is quietly ignored.
To give one block its usual look instead, tick Use this block's own look instead under that sentence and press Save. Every setting then shows and works as on any shop. Untick it to put the Vault design back. It changes that block only.
Picture boxes take a picture dropped on them, or click to choose one. Bigger pictures are shrunk to fit automatically. Paste a URL instead lets you use a picture already online, and Clear takes the picture away.
Editing a block as code
Every block's settings have Edit as code at the right of the Save bar. It opens the block as Twig (HTML, with values in {{ }} and tags in {% %}), filled in to draw much what the block draws now, with a CSS box under it and a list of every value the code can use: competitions and their prices, sold counts and countdowns, winners, instant wins, the live figures, your branding and the shop's pages. Click a value to drop it in at the cursor. Nothing changes on the shop until you press Save; from then the row carries a Code pill and the shop draws the block from your code. Its settings still apply: the code reads them as block.title, block.limit and so on, under Settings this code reads as block.
The CSS reaches that block only, never the rest of the page. Pictures in it come from this site (Media's /uploads/... addresses), data: images and Google's fonts; an @import is always left out, and the save says what else was. Code that does not read (a tag Twig does not have, a quote not closed) shows its line under the box and cannot be saved. Back to the built-in block puts the built-in look back and keeps your code for next time; Start again from the template refills the box. Owner and Manager can use it, as with the Twig block (nothing in it can run as script); a Custom HTML block is code already and has no Edit as code.
Moving a block
- Drag the handle (the six dots on the left of the row) up or down. A line shows where it will land; let go to drop it. This works with a finger on a phone or tablet too.
- Or use the keyboard: select the handle (click it, or reach it with the Tab key), then press the up or down arrow key to move the block one place at a time.
Removing a block, and putting it back
Press the bin on the row. The block goes at once and a message says, for example, "Hero removed." with an Undo button. Press Undo within a few seconds to put it back where it was, settings and all. Once the message has gone, the block is gone: add a new one to replace it.
The preview
- Shows the page as customers see it, draft pages included.
- Computer and Phone switch between a computer-width and a phone-width view.
- It reloads after every change and keeps your place. It says Updating while it reloads and Live when it is up to date.
- Opening a block scrolls the preview to it and outlines it in blue for a moment.
- Open opens the page in a new tab.
- The staff bar, pop-ups and the cookie note are left out of the preview so you only see the page.
Preview launch night, with sample winners
Before launch there are no winners, so the blocks that show them draw nothing and you cannot see your design. On the shop, signed in as staff, press Preview launch night in the staff bar: the scheduled competitions show as they will on sale, and sample winners fill any list that is empty. The strip at the foot of the screen says so while it is on; Turn off ends it. Nothing can be bought until the competitions open.
- Samples fill Latest instant winners, the live wins strip, Instant wins today, Our winners and Latest results, Winner photos, the hero's winners and paid out today, the jackpot's last winner, {{wins_today}} and {{paid_today}}, the Draw results and Instant winners pages, and the winners lists in Twig blocks and blocks edited as code.
- They are made from your own competitions and their instant-win prizes (titles, pictures, prize names and values), with made-up names and towns written the way your winners will be (General > Winner display), the instant wins spread over today.
- Each sample carries a small Sample tag. In code, `win.is_sample`, `winner.is_sample`, `jackpot.last.is_sample` and `stats.today_is_sample` are true for a sample and false for anything real.
- Samples only fill a list or a figure that is empty. As soon as there is one real winner, that block shows real winners only, never a mix. All-time totals (paid out, winners, draws) are never made up.
- Only you see them: customers, and staff with the preview off, only ever see real winners. Samples are never saved, never sent in an email or a feed, and never used when a block is checked on save.
Copying a whole layout
- On the page you want to copy, press Copy layout. The message says "Layout copied".
- Open the page you want it on (here or on another shop) and press Paste layout.
- Paste into the box (Ctrl+V, or Cmd+V on a Mac).
- Press Add to the end to add the blocks under what is already there, or Replace every block to swap the whole page for the pasted one. Replacing asks you to confirm first.
Pictures and words come across too. Any block this shop does not have is left out, and the message says how many were left out.
Every site’s admin has this guide built in, with a help link on each page. All help articles.