Subsites
Define a named branch of your page tree that a theme can present as a distinct section of your site
A Subsite is a named branch of your existing page tree. Use one when a program, venue, festival, campaign, or other part of your organization should behave as a distinct section while remaining within the same site.
The Subsite starts at a homepage you choose. That page and every page nested beneath it belong to the Subsite automatically. Your theme decides how it appears to visitors.
Plan availability
Subsites are available when the feature is enabled for your site. If Subsites does not appear under Website, contact your account manager.
How a Subsite behaves
| Subsite behavior | |
|---|---|
| Domain | Uses the same domain as the rest of the site. |
| Homepage | Can be any page. Build and edit it like any other page, without special content restrictions. A page can be the homepage of only one Subsite. |
| Pages | Includes the homepage and every page nested beneath it in the site tree. |
| Web addresses | Creating a Subsite does not change a page's web address. Moving pages in or out of its branch may change their addresses because their position in the site tree has changed. |
| Layout | Applies to the pages in the branch that still use the site's default layout. A page that selects its own layout, or uses a template that sets one, keeps that choice. |
| Other content | Events, posts, and other content types are not affected by the Subsite layout, even when they appear under the branch. |
| Presentation | Depends on the theme. Website Builder can apply a shared layout automatically. A custom theme controls its own Subsite presentation. |
Before you create a Subsite
Create the page branch first:
- Create the page that will be the Subsite's homepage.
- Place every page that should belong to the Subsite beneath that homepage in the site tree.
You must also select a layout when creating the Subsite. Your theme decides how it uses that selection. If your site uses Website Builder, prepare the layout first by following Subsites in Website Builder.
Create a Subsite
Open Subsites
Under Website, open Subsites. Click to create a new Subsite.
Name the Subsite
Enter a name that editors will recognize. The name identifies the Subsite in Basker. It is not used as the public page title. The name is translatable per language.
Choose the homepage
Select the page where the Subsite starts. That page and all of its descendants in the site tree become part of the Subsite.
A page can be the homepage of only one Subsite. To move a Subsite's starting point, change the homepage on the existing Subsite instead of creating a second one.
Choose the layout
Select a layout. Website Builder applies it to the pages in the branch that still use the site's default layout. Pages that select their own layout, or that use a template with a layout, keep that choice. A custom theme can use the Subsite and its layout selection differently.
Change which pages belong to a Subsite
Membership follows the page tree. Move a page beneath the Subsite homepage to bring that page and its descendants into the Subsite. Move it outside that branch to return it to the surrounding site.
Creating a Subsite around an existing top-level page does not change that page's web address. Moving pages can change their addresses when the move gives them a different parent path. Review Organising pages in the site tree before rearranging a published branch.
How themes use Subsites
Subsites define which branch a page belongs to. They do not prescribe one visual treatment for every theme.
- Website Builder themes can automatically apply the selected layout to the Subsite homepage and its descendants. See Subsites in Website Builder for layout inheritance and overrides.
- Custom themes control how a Subsite is rendered. A theme developer might create another Liquid layout, build navigation from the Subsite's page branch, or apply different templates, assets, and presentation rules. See Layouts in custom themes.
Nested Subsites
A Subsite can start inside another Subsite. From the inner Subsite's homepage downwards, it is the more specific Subsite. For example, a Festival Subsite may contain a Schools program Subsite. Your active theme decides how it presents that distinction.
Example: a festival
Suppose a venue runs an annual Summer Festival. Its site already has a top-level festival page at /summer-festival, with Events, Plan your visit, and About the festival pages nested beneath it.
- Choose Summer Festival as the Subsite homepage.
- Keep the festival pages beneath Summer Festival in the site tree.
- Select the layout required by the active theme.
- Publish the Subsite.
The existing addresses remain /summer-festival, /summer-festival/events, /summer-festival/visit, and /summer-festival/about. Those pages pick up the festival layout, except any page that already has its own layout or uses a template that sets one. The theme can now present that branch as a distinct festival site. A new page nested beneath Summer Festival joins the Subsite automatically. Moving Plan your visit outside the festival branch removes it from the Subsite. This move may also change its web address.
Where to go next
Subsites in Website Builder
Build the header and footer and understand Website Builder layout inheritance.
Organising pages in the site tree
Nest and move the pages that make up a Subsite.
Create pages
Create the homepage and child pages for a Subsite.
Custom theme layouts
Create Liquid layouts for a custom theme.