Site Builder Documentation
Site Builder Documentation: pages

Design and mobile

Site Builder keeps one layout per device — desktop, tablet and mobile — and you edit each of them on the same board. A cell that is wide on a desktop can be narrow on a phone; two cells side by side on a desktop can stack on a tablet; a cell can be hidden on one device.

Visitors get the layout that fits their screen:

Screen width Layout
Below 768px Mobile
768px to 1199px Tablet
1200px and up Desktop

A device that has no layout of its own uses the next larger device's layout: mobile uses the tablet layout, and tablet uses the desktop layout.

The visitor's page carries only the layout for their own device: a cell hidden on a device, or by a device type display rule, is not in that page at all. The device is detected from the screen width and kept in the sb_device cookie (Device cookie and page caching).

Ask the assistant

"Hide this cell on phones" — the assistant makes the same per-device change this page describes. See The assistant.

A landing page in manage mode with the position's layout editor pinned: the position's own control strip, and below it the row of two cells the position lays out, one holding the Headphones hero and the other the Product heroA landing page in manage mode with the position's layout editor pinned: the position's own control strip, and below it the row of two cells the position lays out, one holding the Headphones hero and the other the Product hero
Manage mode: a position's editor with its row of two cells

The editor works on mobile too, so you can check and manage a position from a phone:

The demo landing page in manage mode on mobile. Above the title sits an empty position offering to manage it with Site Builder. Below the title and its description come the positions' manage-mode strips — two of the page's own among them, one carrying its RULES and the Previewed for you bar above a row of two banners, the next the Feature callout. Then Site Builder's notice — This page has no content yet. Use Edit template above to write it. — and under that notice a further position of the page's, still empty, with only its add controlThe demo landing page in manage mode on mobile. Above the title sits an empty position offering to manage it with Site Builder. Below the title and its description come the positions' manage-mode strips — two of the page's own among them, one carrying its RULES and the Previewed for you bar above a row of two banners, the next the Feature callout. Then Site Builder's notice — This page has no content yet. Use Edit template above to write it. — and under that notice a further position of the page's, still empty, with only its add control

Switch to a device's layout

The device switch in the staff bar has three icons: a monitor (Desktop), a tablet (Tablet) and a phone (Mobile).

The staff bar's run of links, lightly dimmed except the device switch: Site Builder's Stop Site Builder, Add Page and Edit Page, then the switch — three small icons, a monitor, a tablet and a phone, ringed together — then the board's other staff linksThe staff bar's run of links, lightly dimmed except the device switch: Site Builder's Stop Site Builder, Add Page and Edit Page, then the switch — three small icons, a monitor, a tablet and a phone, ringed together — then the board's other staff links
The device switch in the staff bar: Desktop, Tablet and Mobile, left to right.
  1. Open the board in manage mode.
  2. Press the tablet icon in the staff bar. The editor now shows and edits the tablet layout, at the tablet's width.
  3. Press the phone icon for the mobile layout, and the monitor icon to go back.

Switching changes nothing by itself. It picks the layout your next changes apply to, and the choice is remembered.

The landing position's editor in the tablet mode: its grid is drawn at the tablet width, narrower than the board's content column beside it, and the position's strip carries Unpublished changes for the staged tablet layoutThe landing position's editor in the tablet mode: its grid is drawn at the tablet width, narrower than the board's content column beside it, and the position's strip carries Unpublished changes for the staged tablet layout
Tablet mode: the same editor, showing the tablet layout at the tablet's width

Change a cell on one device

  1. Switch to the tablet layout with the tablet icon.
  2. In Layout mode, press the style icon — sliders (Style: spacing, width and size limits of this cell.) — in the cell's toolbar — or, for a nested parent cell, in its bottom-right corner controls.
  3. Change a setting — for example the Width, from 300px to 150px.
  4. The popover's footer now reads 1 overridden on this device: one setting of this cell differs from the larger device's layout.
  5. Reset device overrides removes the tablet's own values, and the cell uses the larger device's layout again.
The cell holding the Product hero, its Style popover open on the tablet, its width reading 150px and its footer reporting 1 overridden on this device with a Reset device overrides linkThe cell holding the Product hero, its Style popover open on the tablet, its width reading 150px and its footer reporting 1 overridden on this device with a Reset device overrides link
A cell changed on this device: the footer counts the overridden settings and offers Reset device overrides

A cell you have not changed on this device reads Inherited from desktop. On mobile it reads Inherited from tablet when the tablet has its own values for that cell:

The cell holding the Headphones hero, its Style popover open on the tablet, its footer reading Inherited from desktop with no override count and no reset linkThe cell holding the Headphones hero, its Style popover open on the tablet, its footer reading Inherited from desktop with no override count and no reset link
A cell with no changes on this device
  • The footer shows on tablet and mobile only.
  • The count and the reset are for that one cell. Each cell has its own.
  • On mobile, a cell uses the tablet's values when the tablet has its own, and Reset device overrides returns the cell to those.

Arrange cells on one device

The Arrange cells popover of a parent cell sets how its sub-cells are laid out: direction, alignment, wrapping, order, gap and padding. Each of these is set per device.

  1. Switch to the tablet layout with the tablet icon.
  2. In Layout mode, press the arrange icon — four squares (Arrange the cells inside this cell: direction, order and spacing.) — in the parent cell's bottom-right corner.
  3. Under Cell order, move a cell one place up.
  4. The tablet layout now starts with that cell. The desktop layout is unchanged.
  5. Original order undoes the moves.
The parent cell's Arrange cells popover over the editor, drawn at the tablet width: under Cell order the two cells are listed with the Product hero first, and the row of cells above the panel leads with itThe parent cell's Arrange cells popover over the editor, drawn at the tablet width: under Cell order the two cells are listed with the Product hero first, and the row of cells above the panel leads with it
Arranging cells on the tablet: Move earlier put the Product cell ahead of the Headphones cell; Original order undoes it

Hide a cell on one device

  1. Switch to the device — for example the phone icon, for mobile.
  2. In Layout mode, press the eye icon (Hide this cell on this device and smaller ones.) in the cell's toolbar — or, for a parent cell, in its bottom-right corner controls.
  3. The cell disappears from the row, and the cells beside it take its room.

A cell that holds an item can be hidden, and so can a parent cell: hiding it hides the cells inside it too, on that device only. An empty cell and the outer frame of a split position have no eye icon.

The landing layout editor drawn at the phone width, beside the board's desktop column: one cell is left in the row, the Product hero's banner filling it on its own, and an eye-slash chip reading 1 sits at the parent cell's top rightThe landing layout editor drawn at the phone width, beside the board's desktop column: one cell is left in the row, the Product hero's banner filling it on its own, and an eye-slash chip reading 1 sits at the parent cell's top right
The mobile layout with one cell hidden; the chip on the parent cell — “Show the cells hidden inside this cell on this device.” — counts the cells it brings back

To bring hidden cells back:

  • All of them: press the chip on the parent cell — a crossed-out eye and a number (Show the cells hidden inside this cell on this device.). They come back on this device only. The number counts the cells the chip brings back: a hidden cell counts 1, and a hidden split cell counts every cell inside it.
  • One of them: press Show hidden cells (N) in the position's header. Each hidden cell shows in its place with an Unhide button. N counts the same way as the chip.

Hiding a cell on a device adds a device condition to the cell's display rules. To combine it with other conditions — user group, page, country — see Rule building.

Drafts and publishing

A change on one device is a normal editor change: it is saved in the position's draft and goes live when you publish the position. See Drafts, publish and undo.

The published landing page as a signed-in member sees it, with no editor on it: a row of two banners, the Feature callout below them, and the sidebar beside — the seeded design, with none of the changes staged in the editor on itThe published landing page as a signed-in member sees it, with no editor on it: a row of two banners, the Feature callout below them, and the sidebar beside — the seeded design, with none of the changes staged in the editor on it
A published page, as a visitor sees it

Light and dark

Site Builder has no theme of its own. Its cells, banners and editor controls follow your XenForo style and the style variation — light or dark — the visitor has chosen.

Good to know

  • The layout is picked by screen width, not by the type of device. The width is read on every page load and kept in the sb_device cookie. A narrow browser window on a desktop gets the mobile layout on its next page load; a visitor's very first page is chosen by their browser's user agent.
  • A display rule with a Device type condition on a position or an item uses the same device as the layout, so the rule and the layout always agree. See Rule building.
  • Only one layout of a position is sent with the page. The page carries the layout for the visitor's device; the other layouts are not in it.
  • Statistics are not counted twice. Only the banners in the layout that was sent count an impression, so having several layouts does not inflate your numbers.