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.


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


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).


- Open the board in manage mode.
- Press the tablet icon in the staff bar. The editor now shows and edits the tablet layout, at the tablet's width.
- 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.


Change a cell on one device
- Switch to the tablet layout with the tablet icon.
- 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.
- Change a setting — for example the Width, from 300px to 150px.
- The popover's footer now reads 1 overridden on this device: one setting of this cell differs from the larger device's layout.
- Reset device overrides removes the tablet's own values, and the cell uses the larger device's layout again.


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 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.
- Switch to the tablet layout with the tablet icon.
- 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.
- Under Cell order, move a cell one place up.
- The tablet layout now starts with that cell. The desktop layout is unchanged.
- Original order undoes the moves.


Hide a cell on one device
- Switch to the device — for example the phone icon, for mobile.
- 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.
- 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.


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.


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_devicecookie. 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.