Page layout: Hub page
A reference guide to the hub page page type and its page components
This reference guide describes the layout and composition of pages with the hub page page type.
Use this guide to understand which components are used on pages with this page type, how they are laid out, and how to target them for customization.
The diagrams in this guide are representative of the out-of-the-box layouts of pages with this page type. Each diagram is annotated with the page components that are present on this page type (or which may be present, depending on backend settings).
For each page component, the relevant CSS selectors (for both the component itself, and its container) are provided. Wherever a page component is part of a larger page component that has its own reference guide, this is also indicated.
About this Page Type
The purpose of the hub page page type is to act as the home page of a hub front end. As a result, each hub front end contains only one page with this page type.
This page type is structurally similar to the stream page page type: both of these page types are designed to display content in a browseable grid, so the tile grid page component is a prominent part of their layout.
This page type also includes a unique page component that is not present on any other page type, the hub banner (although the stream page page type has a closely related and very similar component, the stream banner).
This page type is used to display a banner representing the hub/brand, as well as a grid of content. By default, this content is the most recently created content in the hub ("Latest Content"), but it can also be the content from any marketing stream if configured as such in the hub backend.
This layout is used for viewports 1337 px wide or larger:
This layout is used for viewports 560 px wide or smaller:
Page components and CSS selectors
The following table lists the CSS selectors for the labelled page components in the diagrams:
|Page Component||Container CSS Selector||Component CSS Selector||Notes|
|Hub Navigation||See Page Component: Hub Navigation for more information.|
|Hero Logo||Part of the Hub Banner page component.|
|Background Image||Part of the Hub Banner page component.|
|Introduction||Part of the Hub Banner page component.|
|Stream Name||Displays Latest Content by default.|
|Tile Container||See Page Component: Tile Grid for more information.|
|See More Button||Can be hidden and toggled to lazy loading by disabling backend option Hubs > Hub Options > Advanced > Load content by "See more" button|
Most pages in the hub front end have a
containerclass that is applied to component containers that are centered on the page, and which is used to set their default width. On the hub page page type, the
containerclass is applied to the following components:
- Hub Navigation
- Tile Container
You can adjust the default widths of the
containerclass to adjust the widths of these page components.
Updated over 2 years ago