Skip to main content

Custom Pages in Weaverse

Custom pages let you create unique, fully customizable routes for your Hydrogen storefront using Weaverse Studio. Use these pages for landing pages, promotional campaigns, unique content, or anything outside the standard Shopify page types.
What are Custom Pages? Custom Pages in Weaverse allow you to define any route and visually build content for it—without code or deployment. Perfect for landing pages, campaigns, or utility content.

Overview

Custom pages empower you to:
  • Launch campaign/landing pages without developer deployment
  • Build unique content-driven or utility pages (store locator, FAQ, etc.)
  • Use Weaverse’s drag-and-drop sections for any route you define

When to Use Custom Pages

  • For content or marketing pages not tied to Shopify’s built-in page types (product, collection, etc.)
  • When you want total layout freedom and section control
  • For SEO-optimized, campaign-specific, or seasonal content
Tip: Use clear, descriptive handles for your custom pages (e.g., /summer-sale). Handles must be unique and should not conflict with built-in Shopify routes.

Step 1: Creating a Custom Page in Weaverse Studio

  1. Open Weaverse Studio.
  2. Click the Page navigation dropdown in the top bar.
  3. Select Create custom page. Create custom page
  4. Enter a name and handle (URL path) for your new page, then click Create custom page. Create custom page 2
  5. The Studio will open your new page, ready for section editing.
Warning: Handles must be unique. If you reuse a handle, it may override an existing page or cause routing conflicts.

Step 2: Configuring Hydrogen Routing

To serve custom pages, you need a catch-all route in your Hydrogen app. This enables dynamic rendering of any custom page defined in Weaverse Studio. Pilot ships this already — app/routes/catch-all.tsx, registered as the last entry inside the :locale? block of app/routes.ts:
Pilot uses React Router 7’s manual route registry. Adding a file under app/routes/ does not create a route — it must be registered in app/routes.ts.

Where Studio Opens a Custom Page

Studio opens a custom page at its handle, directly under the storefront root: handle summer-sale opens /summer-sale. When the selected market has a path prefix, Studio adds it in front, as in /fr-ca/summer-sale. Weaverse resolves the page from that same URL, so the route that answers it must call loadPage({ type: "CUSTOM" }). Custom pages can’t be remapped through the theme schema’s routes, because each custom page carries its own path.

When Another Route Answers the Same URL

A custom page URL is served by whichever route in your theme matches it. If that is not the catch-all, for example a root-level :handle route for collections, that route must load the custom page when its own resource is missing. Otherwise visitors get your not-found page, and Studio’s preview shows it instead of the page you opened. Give that route a static prefix, such as collections/:handle, or let it fall back to the custom page:
Render <WeaverseContent /> in both cases, and skip collection-only output, such as analytics events, when collection is null. Pilot’s routes/home.tsx uses the same fallback for a one-segment URL that is not a locale.

Handling Locales vs. Custom Page Handles

In multilingual storefronts, the first segment of the URL may be a locale (e.g., /en-us) or a custom page handle. For a one-segment URL such as /about, React Router matches Pilot’s index route inside the optional :locale? prefix. routes/home.tsx checks whether that segment is a supported locale; when it is not, the loader requests a CUSTOM page instead of the homepage. Pilot handles this in app/utils/locale.ts: resolveLocale() only treats the first path segment as a locale when it matches an entry in SUPPORTED_LOCALES; otherwise the default locale is used and the segment stays part of the custom page path. app/.server/storefront.ts uses it to build the Storefront client’s i18n for each request.
Best Practice: Keep your supported-locale list (SUPPORTED_LOCALES) as the single source of truth. Anything not in it is a custom page handle — you don’t need per-route locale sniffing.

The Home and Catch-All Routes

Pilot’s app/routes/catch-all.tsx handles other unmatched paths with type: "CUSTOM". The handle is resolved from the request URL, so no handle argument is needed. The home route uses the same page type for an unrecognized one-segment locale parameter. This is Pilot’s catch-all route:

How it works:

  • The loader fetches the custom page matching the current request URL.
  • When no page is assigned to the URL, loadPage() resolves to a fallback page with isFallback: true (6.5.0+), not null. validateWeaverseData() throws a 404 for null and for that fallback page outside design mode, where Studio needs it so the merchant can add sections.
  • A load failure resolves to null by default. Pilot’s client sets throwPageLoadFailures: true, so a failure rejects with a WeaverseLoadError and the route answers 503 or 500 instead of 404.
  • getWeaverseSeoMeta() renders the SEO fields you configured on the page in Studio. Pilot’s withWeaverseSeo() (in app/utils/seo.ts) merges them with the market’s canonical and hreflang tags from the root route.
  • <WeaverseContent /> renders the sections.
Route modules are ordinary React Router 7 modules: import LoaderFunctionArgs and MetaArgs (or MetaFunction) from react-router, not from @shopify/remix-oxygen, and return plain objects from loaders instead of json().
Troubleshooting: If your custom page is not rendering, check the handle, page publication status, and route setup.

Dedicated Routes for Specific Custom Pages

Root-level custom pages need no extra route — Pilot’s home/catch-all routing already covers them. Register a dedicated route in app/routes.ts only when you want a different URL shape (e.g. nesting every campaign under /promo/...), and load it with type: "CUSTOM" too.

Step 3: Adding Custom Pages to Navigation

  1. In Shopify Admin, go to Online Store > Navigation.
  2. Select your menu and click Add menu item.
  3. Name the item and set the Link to your custom page path (e.g., /my-custom-page).
  4. Save. Your page is now accessible from your storefront navigation.
Tip: Shopify navigation changes may take a few minutes to appear on your live storefront due to caching.

Step 4: Customizing Your Page

  1. In Weaverse Studio, open your custom page.
  2. Click Add Section to drag in content blocks (banners, products, forms, etc.).
  3. Edit and arrange sections as needed. Use settings for layout, colors, and content.
  4. Save and preview.
Best Practice: Use global theme settings and reuse global sections for consistent branding across your storefront. Preview changes before publishing to ensure layout and content accuracy.

Custom Pages in the Sitemap

context.weaverse.fetchCustomPages() returns the route metadata (path, lastModified, changeFrequency, priority) of every custom page assigned in the project, paginating for you. Pilot already uses it: app/routes/seo/sitemap-weaverse.xml.ts serves /sitemap-weaverse.xml, and the sitemap index in app/routes/seo/sitemap.ts links to it. Other themes add a similar route.
The list is not filtered by publication state, so an entry is not proof that the page is published. Apply your own publication policy before you add a route to a public sitemap. See List Public Custom Pages and fetchCustomPages.

Custom Pages with Localization

Custom pages support Weaverse’s localization features, allowing you to create locale-specific custom pages for different markets.

Creating Localized Custom Pages

In Weaverse Studio, you can create localized versions of custom pages using the country selector, just like with other page types. See the Markets & Localization guide for Studio workflow details.

Loading Localized Custom Pages

Auto-Detection (Default)

Custom pages automatically detect the locale from Hydrogen’s i18n context:

Explicit Locale Parameter

For custom routing logic or when you need to explicitly specify the locale:

Locale-Specific Custom Page Routes

Create dedicated routes for locale-specific custom pages. Register each one in app/routes.ts inside the :locale? prefix block — for example route("om-oss", "routes/pages/om-oss.tsx"):

Loading Multiple Locale Versions

For translation workflows or content comparison:

Multi-Project Custom Pages

For complex multi-market scenarios, use the multi-project approach:
Benefits of multi-project for custom pages:
  • Completely different custom page structure per market
  • Independent theme settings and global sections
  • Market-specific page routing and navigation
  • No shared content between markets
See Advanced Localization Guide for complete details on locale detection, multi-project architecture, and advanced scenarios.

SEO & Best Practices

  • Use descriptive handles (e.g., /summer-sale)
  • Add meta titles/descriptions in your Hydrogen loader or via Weaverse SEO settings
  • Use semantic section blocks for accessibility
  • Keep images optimized for fast loading
  • See Page SEO for SEO settings on Weaverse pages

Troubleshooting

Page shows 404:
  • Check that the custom page exists in Weaverse Studio and is published
  • Ensure the handle matches the route in the URL
  • Confirm your Hydrogen catch-all route is set up as above
  • If another route matches the URL: Make it load the custom page when its own resource is missing, as shown in When Another Route Answers the Same URL.
  • If using locales: Make sure your loader distinguishes between locale codes and custom handles as shown in the example above.
  • Check browser console and network requests for errors
Studio’s preview shows your not-found page instead of a new custom page:
  • The route that answers the page’s URL in your theme does not load custom pages. Check which route matches it, using Where Studio Opens a Custom Page.
  • Fix that route before you edit the new page.
Sections not showing:
  • Make sure you have added and saved sections in Weaverse Studio
  • Refresh your Hydrogen storefront after publishing changes
  • Confirm there are no errors in the browser console
Navigation link not working:
  • Double-check the menu item path in Shopify Admin
  • Wait a few minutes for navigation cache to update
Common Mistakes:
  • Reusing a handle that conflicts with built-in Shopify routes
  • Not publishing the custom page in Weaverse Studio
  • A root-level route, such as :handle for collections, that renders a not-found page instead of loading the custom page

Advanced Examples

Example 1: Promotional Landing Page

  • Create a new custom page /black-friday
  • Add hero banners, product grids, countdown timers
  • Link from your homepage or ads

Example 2: Custom Store Locator

  • Create /store-locator
  • Add a map section and store info blocks
  • Use custom code or embed a map widget if needed

Example 3: Dynamic Content Page

  • Use loader to fetch dynamic data (e.g., from a CMS or API)
  • Return it from the loader next to weaverseData, read it with useLoaderData(), and render <WeaverseContent /> (it reads the Weaverse data from the route itself and takes no props)

Example 4: Integrating with External APIs

  • Fetch data from a third-party API in your loader and merge it with Weaverse content as shown above.

Next Steps & Resources

With this setup, your Hydrogen storefront can host any number of flexible, SEO-friendly, and fully branded custom pages—no deployment required. Enjoy building with Weaverse!
Last modified on November 26, 2026