Site Builder Documentation
Site Builder Documentation: pages

Banners and widgets

Banners and widgets are the two kinds of content you place with Site Builder.

  • A banner is an image, a line of text or a piece of HTML that points visitors somewhere — a promotion over the topic list, a call to action above the page.
  • A widget is one of XenForo's widgets — latest threads, online statistics, a custom HTML block.

Both go into the cells of a position, and both are edited on the board itself, in manage mode.

An HTML banner and an HTML widget can both hold any custom content. We suggest keeping them apart by purpose: use banners for ads and widgets for everything else. Image and text banners also give you click statistics, which HTML cannot.

Every change is saved as a draft. Visitors see it after you press Publish on the position.

Ask the assistant

"Put the newest-posts widget in the sidebar" or "draft an HTML banner above the content with a headline and a button" — the assistant drafts both for you. See The assistant.

A page in manage mode with banner positions above the content and widget positions in the content and sidebarA page in manage mode with banner positions above the content and widget positions in the content and sidebar
A page in manage mode: banners above the content, widgets in the content area and the sidebar

The editor works on mobile too:

The same page in manage mode on mobileThe same page in manage mode on mobile

What a position offers

Each position takes one kind of content:

  • A banner position (an advertising position in XenForo) takes banners. An empty cell offers Create Banner; a cell that holds banners offers the plus icon (Create a banner in this cell.).
  • A widget position takes widgets. An empty cell shows the widget chooser; a cell that holds a widget offers the plus icon (Add a widget to this cell.).
A banner position whose cell holds a banner and offers “Create a banner in this cell.”, above a widget position whose cell holds a widget, its “Add a widget to this cell.” icon beside the open widget chooserA banner position whose cell holds a banner and offers “Create a banner in this cell.”, above a widget position whose cell holds a widget, its “Add a widget to this cell.” icon beside the open widget chooser
Top: a banner position; its cell holds a banner, so it offers “Create a banner in this cell.” Bottom: a widget position; “Add a widget to this cell.” opened the chooser.

Adding an image banner

  1. Open manage mode from the staff bar and open the banner position. Press Create Banner in an empty cell. In a cell that already holds banners, press the plus icon (Create a banner in this cell.) at its top-left corner instead.
  2. Pick Image as the type.
The banner form with the Image type chosen and the upload area shownThe banner form with the Image type chosen and the upload area shown
The banner form on the Image type, with its upload area
  1. Add the image: press Upload Images, paste it, drop it on the upload area, or enter the address of an image that is already online.
  2. Enter a Title — it is for your own reference in the editor — and a Banner Text. On an image banner the text is the image's alt text: screen readers read it, and it shows when the image cannot load.
  3. Enter the Banner URL — the address the banner links to.
  4. Leave Active ticked and press Save. The banner is in the cell as a draft.
  5. Press Publish on the position.

Adding a text banner

  1. Press Create Banner (or the plus icon) on a cell of a banner position.
  2. Pick Text as the type.
The banner form with the Text type chosenThe banner form with the Text type chosen
The banner form on the Text type
  1. Enter the Banner Text — the line visitors read — and the Banner URL.
  2. Press Save, then Publish the position.

Linking a banner

Image and text banners always link somewhere: the Banner URL is required, and the whole banner is the link. Use the address visitors should go to — a category, the shop, a landing page.

The banner form with an image attached and the Banner URL filledThe banner form with an image attached and the Banner URL filled
An image banner with its title, alt text and URL filled in

An HTML banner needs no Banner URL: put the links you need in its HTML.

Adding an HTML banner

Use the HTML type when the banner needs markup of its own — a styled call-to-action box, an embed, a small layout.

  1. Press Create Banner (or the plus icon) on a cell of a banner position.
  2. Pick Banner HTML as the type. A new banner form opens on it.
  3. Write the HTML into the text box.
The banner form with the Banner HTML type chosen and markup in its text boxThe banner form with the Banner HTML type chosen and markup in its text box
The banner form on the Banner HTML type
  1. Press Save, then Publish the position.

Adding a widget

  1. Open the widget chooser on a cell of a widget position. It is already open on an empty cell; on a cell that holds a widget, press the plus icon (Add a widget to this cell.).
  2. The chooser has two tabs:
    • New widget lists the widget types your board offers. Type to filter the list — "HT" finds the HTML widget.
    • Existing widget lists the widgets your board already has, each with the place it is in. Picking one puts the same widget in this cell too — it is not a copy.
The widget chooser open in a cell, filtered to the HTML widgetThe widget chooser open in a cell, filtered to the HTML widget
The chooser's New widget tab, filtered to the HTML widget
  1. Press a widget type. The widget form opens with a Title and the type's own settings. The HTML widget has a template editor for its content:
The HTML widget form with a title and a list in its code editorThe HTML widget form with a title and a list in its code editor
A new HTML widget: its title and content

New posts has Maximum entries, a Display style (Simple for narrow places such as the sidebar, Standard for a full thread list), a Filter (Latest, Unread or Watched) and a Forum limit:

The New posts widget form with its optionsThe New posts widget form with its options
A new New posts widget: entries, display style, filter and forums

Members online has Maximum usernames and two options: show the 'People you follow' row and show the 'Staff online' block:

The Members online widget form with its optionsThe Members online widget form with its options
A new Members online widget: maximum usernames, followed and staff rows
  1. Fill the settings and press Save, then Publish the position.

A carousel holds several widgets in one cell and shows them one at a time, as slides.

  1. Press Add carousel in an empty cell of a widget position. In a cell that already holds widgets, press the images icon (Add a widget carousel in this cell.) instead. The carousel's editor opens.
  2. Add a slide: pick a widget type, fill its form and press Save. Repeat for every slide. You can also add a widget your board already has.
  3. Set the carousel's options:
    • Auto-rotate — the carousel moves to the next slide by itself.
    • Seconds between slides — 2 to 60 (default 6).
    • Carousel pagination — Dots or Numbers under the slides.
  4. Change the order of the slides with the up and down arrows in the list (Move up, Move down), and remove a slide with its × (Remove).
  5. Publish the position.

Visitors can pick a slide from the pagination, move between slides with the arrow keys, and stop the rotation with the pause button. The rotation also pauses while the pointer is over the carousel. Visitors whose system asks for reduced motion get no auto-rotation.

Deleting a carousel deletes its widgets too, except a widget that is also placed somewhere else. The delete confirmation lists the widgets and says which are kept. One undo brings the carousel and its widgets back.

Editing an item

  1. In Content mode (the editor's default), each item has a toolbar at its top: the move arrows, a pencil, the filter icon for its display rules, the brush for its style and a bin.
A placed banner's toolbar, its small edit pencil and delete bin ringedA placed banner's toolbar, its small edit pencil and delete bin ringed
An item's toolbar: “Edit this banner.” opens its form, “Delete this banner.” removes it
  1. Press the pencil (Edit this banner. on a banner, Edit this widget. on a widget). The item's form opens.
A banner's edit form open over the editor, with its uploaded imageA banner's edit form open over the editor, with its uploaded image
Editing a placed banner
  1. Change what you need and press Save.
  2. Publish the position.

Moving an item between cells

  1. Drag the item by the move arrows in its toolbar (Drag to move this item).
A banner with its toolbar floating over it, a second cell beside itA banner with its toolbar floating over it, a second cell beside it
The banner's “Drag to move this item” handle; the neighbouring cell receives the drop
  1. Drop it on another cell of the position. The cell highlights while the item is over it.
  2. Publish the position.

A cell can hold several items. Visitors see one of them per page view; in the editor, use the pager under the cell to switch between them.

Removing an item

A removed banner is deleted. A widget can be placed in several positions (the Existing widget tab), so removing it takes this placement only: its other positions keep it. When this was the widget's last placement, the widget itself is deleted when you publish. The confirmation says which applies.

  1. Press the bin in the item's toolbar (Delete this banner. on a banner, Remove this widget from this position. on a widget). The toolbar is shown under Editing an item.
  2. Press Confirm.
The remove confirmation dialog over a placed widgetThe remove confirmation dialog over a placed widget
The remove confirmation of a widget
  1. Publish the position.

Until you publish, the position's undo arrow brings the item back.