Platform
Learn
Developer docs User guide Quickstart Blog
Company
Services About Contact Links Get started

Widgets reference

Updated

Widgets are the blocks you place on a site page. This page lists the eight built-in widgets and every setting each one has, with the defaults a new widget starts with. To place and arrange them, see Site pages and the page builder.

How widget settings work

When you add or edit a widget, the form shows the settings of its widget type. Settings that are empty are simply not shown on the page.

  • Image settings take a web address. Paste one, or upload an image and Raytha fills in the address of the uploaded file.
  • Color settings are hex colors such as #1e293b.
  • Button style choices are Primary, Secondary, Outline primary, Outline light, Light, Link, Success, Danger, Warning, Info, Dark and Outline dark. They map to Bootstrap button styles.
  • Alignment choices are Left, Center and Right.
  • A button is shown only when both its Button text and its Button URL are filled in.

Every widget also has the Advanced settings (CSS class, HTML id, custom attributes, row, column and column span) described in the page builder guide.

Note The built-in widgets are styled with Bootstrap, which the built-in theme includes. If you switch to a theme without Bootstrap, widgets will lose their styling and the FAQ will not expand and collapse. Widgets belong to a theme, so a theme can also add its own widget types, marked Custom in the picker.

Hero

A large banner with a headline, supporting text and an optional button. Use it at the top of a page.

SettingTypeDefaultNotes
HeadlineTextLarge heading.
SubheadlineTextSupporting line below it.
Background imageImageCovers the banner. A dark overlay is added so text stays readable.
Background colorColor#1e293bShown behind or instead of the image.
Text colorColor#ffffff
Button text, Button URLTextBoth needed for the button to appear.
Button styleDropdownLight
AlignmentDropdownCenterText and button position.
Minimum heightNumber400In pixels.

WYSIWYG

A free-form block of formatted text, links, lists and images, written in the rich text editor.

SettingTypeDefaultNotes
ContentRich textThe body.
Background colorColorOptional.
PaddingDropdownMediumNone, Small, Medium or Large space above and below.

Image + Text

An image next to a headline, text and an optional button. Use it for feature descriptions and about sections.

SettingTypeDefaultNotes
ImageImageWithout it the widget shows an empty placeholder box.
Image alt textTextDescribes the image for screen readers. Falls back to the headline.
HeadlineText
ContentRich text
Image positionDropdownLeftLeft or Right.
Button text, Button URLTextBoth needed.
Button styleDropdownPrimary
Background colorColorOptional.

Card

A single card with an optional image, a title, a description and a button. Place several side by side by giving each a narrow column span.

SettingTypeDefaultNotes
TitleText
DescriptionRich text
ImageImageShown across the top, cropped to a fixed height.
Image alt textTextFalls back to the title.
Button text, Button URLTextBoth needed.
Button styleDropdownPrimary
Background colorColorOptional.

FAQ

A list of questions that expand to show their answers.

SettingTypeDefaultNotes
Headline, SubheadlineTextOptional heading above the list.
Expand first itemCheckboxOnOpens the first question when the page loads.
Background colorColorOptional.
QuestionsRepeaterEach row has a Question (text) and an Answer (rich text). Add a row for each question.

Call to Action

A full-width colored band with a headline, a short message and one button. Use it to close a page.

SettingTypeDefaultNotes
HeadlineText
ContentRich text
Button text, Button URLTextBoth needed.
Button styleDropdownLight
Background colorColor#0d6efd
Text colorColor#ffffff
AlignmentDropdownCenter

Embed

Shows content from elsewhere, such as a video, a map or a form, either in an iframe or as your own HTML.

SettingTypeDefaultNotes
Embed typeDropdownIframeIframe or HTML.
Iframe URLTextUsed when the type is Iframe. Use the embed address the provider gives you, not the normal page address.
Embed HTMLLong textUsed when the type is HTML. "Rendered as raw HTML, scripts included."
Aspect ratioDropdown16:916:9, 4:3, 1:1 or 21:9. Applies to iframes.
Max widthNumberIn pixels. Leave empty for full width.
CaptionTextSmall text below the embed.
Background colorColorOptional.

Warning Embed HTML is inserted exactly as typed, scripts included. Only paste code from sources you trust, and only give people who should be able to run scripts on your site the permission to edit pages. If neither the iframe address nor the HTML is filled in, the widget shows "No embed content configured".

Content List

A live list of content items from one content type, such as your three latest posts. It updates itself whenever items are published.

SettingTypeDefaultNotes
Headline, SubheadlineTextOptional heading.
Content typeContent type pickerRequired. Which items to list.
ViewView pickerChoose a view of that content type. See the note below.
FilterTextIsPublished eq 'true'An OData filter expression.
Order byTextAn OData order-by expression, for example CreationTime desc.
Page sizeNumber3How many items to show.
Display styleDropdownCardsCards, List or Compact.
Show image, Show date, Show excerptCheckboxOnTurn parts of each entry on or off.
View all text, View all URLTextAdds a link next to the heading. The text defaults to "View all"; the link appears when a URL is set.
Background colorColorOptional.

Things to know about Content List:

  • Image and excerpt come from field names. The built-in template shows an image from a field with the developer name featured_image and an excerpt from a field named content (shortened, with the formatting removed). Content types without such fields simply show no image or excerpt. Posts has both.
  • The View setting has no effect in the built-in template at the moment. Use Filter and Order by to control which items appear and in what order.
  • Only published items are listed, regardless of the filter.
  • If nothing matches, the widget shows "No content items found".
  • The filter and order-by syntax is the same as in templates and the API; see OData in templates.

Gotchas

  • Settings you leave empty fall back to the template's own default, which can differ from the form's default. For example the Hero template falls back to #0d6efd if the background color is cleared, while a new Hero starts at #1e293b.
  • Changing a widget template changes every widget of that type. Edit widget templates under Themes only if you mean to. See Themes and web templates.
  • Need a block that is not here? A developer can add a widget template to the theme; see Widget templates.

Next steps