HomeTips & tricks › Customizing the "Page not found" message

Customizing the "Page not found" message

Also known as the “404 message”, it's displayed by YWD whenever people try to go to a page of the website that no longer exists, for example. Whenever that happens, YWD will display a page similar to this one, by default:

Default 404 screenshot

Default Page not found/404 message from YWD


Using a custom “Page not found” page

You can replace the generic page above with your own, and apply the same look and feel of your website to it. To do that, all you need to do is have one page called "Page not found" in your website. Just follow these steps:

  1. While editing your website in the YWD back-end, look at the left column of the interface where you see the website pages. At the bottom you'll see the Special content: section. Below the Global content (before) and Global content (after) links, check if there's a link called Custom "Page not found". Depending on when your website was created, that link may not be there. If it isn't there's no problem: create a new page and call it Page not found. It is VERY IMPORTANT that the page be called exactly that – Page not found – no exclamation mark, quotes, etc. Save the page, and you'll notice that YWD will place it at the very bottom of the Special content: section. If the page appears amongst the regular pages and not at the bottom you probably have named it incorrectly, so go back and edit its name.
  2. You may edit the content of that page any way you want. Typically you'd have some text explaining that the page or file could not be found, perhaps because it doesn't exist anymore.
  3. Publish the Page not found page. Whether it was already present in your website or you had to add it, you must publish it. Otherwise YWD will still use the generic message.

404 - custom page

A custom "Page not found" page. Notice that it uses the website's
look and feel, just like any other page

warningNote: If you're using your custom "Page not found" as described above,
make sure the page is published. Otherwise the default YWD message will be used.
Top of page