> For the complete documentation index, see [llms.txt](https://help.fluorescent.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.fluorescent.co/context/pages/templates/404-page.md).

# 404 page

{% hint style="danger" %} <mark style="color:red;">Theme retirement</mark> | Context is no longer available on the Shopify theme store. **Theme support and updates for current users will end after May 18, 2024**. [Learn more here](/context/readme/theme-retirement.md).
{% endhint %}

The **404 page** appears when visitors go to a page that doesn't exist on your store. This may occur when an incorrect URL being entered or because the page has been deleted or hidden.

You do not need to set up a 404 page—it shows by default—but you can choose to add custom theme sections and edit the default theme content.

### **Edit 404 page template**

The **404 page template** includes a simple layout that displays a 404 message and a button to redirect customers back to the home page.

To keep customers shopping, you may want to add some custom theme sections, such as a featured collection or a collection list. You can also edit the default theme content to change the wording of the title, subtext, and link label.

<details>

<summary><mark style="color:blue;">STEPS</mark></summary>

In your theme editor (**Customize**):

1. Use the **Templates selector** to open **Other > 404 page**.
2. Add and edit theme sections to customize the layout of your page.

   > (*Recommended*.) Consider adding a Featured collection or Collection list section so customers can continue shopping.

   > Click the **Hide icon** or **Remove section** button to hide or delete sections.

   > Click and hold the drag and drop handles **`⋮⋮`** to change the order of sections.
3. To edit the default text, click **Actions** (**`...`**) > **Edit default theme content**.

   > Search "404", and enter new text for the **Title**, **Subtext**, or **Link** label. Learn more about [editing default theme content](https://github.com/fluorescent/kb-context/blob/main/general/adapting-your-theme/edit-default-theme-content/README.md).

   ![](https://github.com/fluorescent/kb-context/blob/main/.gitbook/assets/404-page-content.jpeg)
4. Click **Save**.

</details>

<br>

***

> **Related links**
>
> [Templates](/context/pages/templates.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.fluorescent.co/context/pages/templates/404-page.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
