To keep a website visitor from leaving when an error occurs, you can create custom error pages to inform them of the issue. In this article, we will explain how to create this type of page in the Editor.
Table of contents
The two most common errors that can occur when a user visits a website are the "404 - page not found" and "403 - access denied" errors. If there are no custom error pages created for these, then an unappealing white page with black text will appear informing the user of the problem. To make sure that the website visitor always sees a consistent design when browsing through a website - even on error pages - you can easily create and set up your own error pages.
How to set up error pages
To create custom error pages, follow these steps:
- Click on Pages at the top of the editor navigation
- Create a new page by clicking on New page or duplicate an existing page
- Give your newly-created page a suitable name according to the type of error
- Click on the downward arrow for More Settings
- There you will find the Type field where you can either select the 403 Page or 404 Page
- To ensure that the error page is not listed as a menu item (when its generated automatically) you can disable the Menu checkbox
Depending on which type you select when creating the page, either 403 Page or 404 Page, the page will be displayed in the future whenever the respective error occurs.
Then, you can adjust the design of the page as you like - just with any other subpage. We recommend adding short text about the error and why it might occurred and also giving the user a button or another option to return to e.g. the Home page.