Updated 404 template for Anaximander

One of the templates that is often overlooked when creating a WordPress theme is the 404 template. The 404 template creates the 404 page that appears when a viewer follows a broken link or enters a garbage link in the address field in their browser. You can see an example by following this link which obviously goes nowhere:

In the rush to release Anaximander and my most recent course WordPress: Building Responsive Themes the 404 template in the starter theme got a bit mangled. I was made aware of this by one of my viewers and we are updating the lesson files as we speak. If you’ve already started on the course or are using Anaximander for your site, I’m providing the fixed file here for you to download and install directly.

Click here to download the zip archive with the 404.php file.

To install the new 404 template unzip the archive and place the new 404.php file inside your Anaximander-Static folder replacing the old one.

The new 404 template is similar to the search template: It provides a simple message saying something went wrong and then offers up the 12 most recent posts as an option to the visitor.

By Morten Rand-Hendriksen

Morten Rand-Hendriksen is a Senior Staff Instructor at LinkedIn Learning (formerly specializing in AI, bleeding edge web technologies, and the intersection between technology and humanity. He also occasionally teaches at Emily Carr University of Art and Design. He is a popular conference and workshop speaker on all things tech ethics, AI, web technologies, and open source.

5 replies on “Updated 404 template for Anaximander”

Hi Morten:

I have viewed all of your courses and recently updated my website using the Anaximander theme. It works really well. Thanks for your continued support of the designer/developer community.

Hi Morten,

First of all excellent tutorial and theme! However, I seem to be running into a problem with the posts sometimes overlapping the widgets on the front page when the site is first viewed. If I reload the page by selecting the page title everything loads fine. Have you had anyone else mention this issue or are you aware of a workaround to prevent this from happening? Thanks in advance.

Comments are closed.