404 page
The not-found page: a clear message, a search field, and a route home.
- Merchant-addable
- No — rendered by the theme
- Settings
- 19
- Block types
- —
- File
sections/404.liquid
Available in: 404 templates.
Included in supplied templates: 404
When to use it
Automatic. Shown whenever a URL does not resolve.
Setting it up
- Choose Content alignment: Theme default preserves the layout, while Left, Center, or Right applies to the introduction and actions on desktop and mobile. For Image layout → Background, choose Content box style → Glass (default) or Solid. Mobile background panels have 24px above and below, and grow with their content. Configure the Search group, then Color and Padding. The search placeholder automatically uses the current Shopify store name: Search within [store name]. The old custom placeholder control has been removed. The home-page action uses a compact, lightly outlined button without an underline; suggested links have no resting underline on phones.
Where the content comes from
Shopify owns the store name and automatic product suggestions; section settings own the page message, home action label, artwork, and optional suggestions.
404 page
The background image treatment uses a lifestyle placeholder behind the text. The split treatment uses the standard image placeholder. Choose desktop and optional mobile artwork; no product data or metafields are required.
Selected images always fill their media area on desktop and mobile. Images crop to cover the available space while respecting the selected focal point; a wide image does not leave an empty band underneath in the mobile split layout.
Heading size sets the “Page not found” heading to Small, Medium, or Large. Medium is the default.
Configure the recovery page
Open the 404 template; this section is supplied there rather than added to ordinary pages. Write Eyebrow, Heading, and Body text, then set Button label for the home-page recovery action. This action is a compact, lightly outlined button with no underline, including on phones. Choose Image layout, Desktop image, and optional Mobile image. Image overlay opacity changes the image treatment where that layout uses an overlay. Assign Color scheme, Top padding, and Bottom padding.
Preview a missing storefront URL as well as the editor. Confirm the home action, search, and suggested destinations take customers to working pages. The section does not change Shopify’s HTTP error behavior or redirect missing URLs.
Search
When Show search form is on, the 404 page shows the same search bar as the search page: a field with a clear button once a shopper types, an arrow submit button, and a Suggested row of searches underneath. The field and button follow the Corner style in theme settings, including the custom control corner radius when it is turned on.
The placeholder automatically reads Search within [store name], using the current Shopify store name, for example Search within Purely. The former custom Search placeholder control has been removed; saved text such as Search Lux no longer overrides the store name. The same wording is used on the search page and in header search. Suggested links have no resting underline on phones; keyboard focus indicators remain visible.
Search field label is available when Show search form is on. It supplies
the field’s accessible name for assistive technology; leave it blank to use the
localized Search label. Existing saved search_label values are retained for
compatibility and used for this accessible name. They do not change the visible
store-name placeholder.
| Setting | What it does |
|---|---|
| Suggested links menu | Optional. A nonempty menu replaces automatic product suggestions and custom search terms. Only top-level links appear. |
| Use product suggestions | On by default. Shows up to four distinct available product names from the storefront catalog in catalog order. The names update automatically from Shopify product data, and each starts a fresh search. Hidden while a suggestions menu is selected. |
| Suggested search terms | Available when product suggestions are off and no menu is selected. Separate custom phrases with commas; each starts a fresh search for products, articles, and pages. Existing saved terms remain available in this mode. |
Automatic suggestions use Shopify product names and availability. If there are no available catalog products, the row stays hidden. These suggestions work without JavaScript. To hide suggestions manually, clear the menu, turn off Use product suggestions, and leave Suggested search terms empty.
Content box and alignment
Content alignment, under Content, offers Theme default, Left, Center, and Right. Theme default preserves the layout’s existing desktop and phone composition. An explicit choice aligns the introduction, home action, search block, and suggestion row on desktop and mobile. The search field retains its normal typing direction.
With Image layout → Background, Content box style appears under Media:
- Glass (default) uses a lightly translucent color-scheme surface with background blur. Browsers without backdrop blur use a solid surface for readability.
- Solid uses the color scheme’s opaque background without blur.
Both styles keep the global surface corners and color scheme. On phones, the background image has 24px of space above and below the box and 16px at each side. The area grows with long copy and suggestions so the box never loses its top spacing.
Section settings
Every setting on the section itself, in the order it appears in the theme editor. Group headings match the editor's own grouping.
Content
Search
Optional. Replaces automatic product suggestions and custom search terms. Only top-level links appear.
Shows up to four available product names from the catalog. Updates automatically as products change. A selected suggestions menu takes priority.
Used when product suggestions are turned off. Separate phrases with commas. Each phrase starts a fresh search.
Media
A Shopify placeholder appears until you select a desktop image.
16:9 aspect ratio recommended.
4:5 aspect ratio recommended. Custom desktop images also appear on mobile when left blank.
Adds the selected color scheme over the background image.