Tuesday, July 2, 2024

Create a Customized 404 Web page in WordPress (+ Examples)

404 pages present when customers attempt to entry assets that don’t exist.

Like a misspelled URL. 

Or a web page that was deleted.

And you may create a customized 404 web page in WordPress (even for those who can’t code).

Why You Want a Customized 404 Web page in WordPress

Customized 404 pages can enhance the consumer expertise by serving to customers discover what they want. 

And you may tailor your 404 web page to mirror your model. By parts like customized copy and imagery. 

Take this default 404 web page:

Server error page with message "not found." The requested URL /example.html was not found on this server.

This web page is unhelpful. And doesn’t level customers in the proper path by means of parts like helpful hyperlinks. Or a web site search field. 

This would possibly trigger folks to depart your web site and go elsewhere. Which might drive up bounce charges.

The answer?

Create a customized 404 web page that displays your model. And helps customers transfer by means of your web site with ease.

Create a Customized 404 Web page in WordPress

Listed below are three strategies to make your individual 404 web page in WordPress:

Possibility 1: Theme File Editor

Many WordPress themes include a premade 404 web page. 

Nevertheless, for those who’re not comfy working in PHP—a scripting language—take into account one other choice to construct your 404 web page. Like a web page builder.

However for those who do need to go this route, you’ll be able to edit your premade 404 web page utilizing your theme file editor. WordPress’s theme file editor is a textual content editor that permits you to edit information in your web site’s theme. 

To do that, log into your web site. Click on “Look” and “Theme File Editor.”

WordPress Appearance menu showing the Theme File Editor.

Your theme file editor comprises a drop-down the place you’ll be able to choose which theme you’d prefer to edit. 

It additionally comprises your theme’s information and a textual content field with every file’s code.

WordPress theme file editor screen for the GeneratePress theme

Modifications you make by means of your baby theme stay even whenever you replace your father or mother theme. So, create a baby theme to maintain any adjustments to your 404 web page.

You need to use plugins just like the Little one Theme Configurator to create a baby theme in just a few clicks. Or comply with WordPress’s directions to create a baby theme with no plugin. 

After getting a baby theme, use an FTP consumer or your net host’s file supervisor so as to add information to your baby theme.

The next tutorial will present you easy methods to add information together with your web site’s file supervisor.

To start out, log in to your host and find your file supervisor.

Web host file manager interface.

Discover your 404 web page file. It can doubtless be below your root folder (usually named “/” or “public_html”). Then go to “wp-content” > “themes” > “your theme.” 

Our instance has two 404 web page information:

  • A file named 404.php for the general format of the 404 web page
  • A file named content-404.php that features the content material of the 404 web page (like textual content and pictures)
Web host file manager screen showing 404.php and content-404.php files.

For our instance, we’ll make a replica of the content-404.php file. To edit the textual content and imagery for this web page.

Double click on this to open your 404 web page file. 

Then copy the contents right into a plain textual content editor. Like a notepad app in your pc.

Subsequent, click on your baby theme’s folder and create a brand new file inside it. Identify this file the identical title as your 404 web page (in our case, “content-404.php”).

Then, paste the code out of your plain textual content editor into your new file, and click on save. 

Web host file manager showing a child theme

Subsequent, edit the contents of your 404 web page. 

For instance, we may change the highlighted textual content (beneath) to one thing that’s extra aligned with our model voice.

Web host file manager editor for child theme content-404.php file.

After saving your adjustments, your customized 404 web page ought to now show when somebody tries to entry a web page that doesn’t exist.

Possibility 2: Web page Builder

Web page builders like Elementor, Beaver Builder, and Divi Builder are no-code options for constructing a customized 404 web page. 

Whereas web page builders usually have free choices, you could must improve to the paid model to construct a customized 404 web page.

Right here’s easy methods to make a customized 404 web page with Elementor.

First, set up and activate Elementor Professional.

Click on “Templates” and “Theme Builder.”

WordPress side menu showing option for Theme Builder.

Then click on the “Add new” button.

A window will pop up. Choose “Error 404” from the drop-down, and provides your template a reputation. Click on “Create Template.”

Elementor Pro template creation screen showing the option to create a custom 404 page.

You possibly can choose from premade templates. Or design one from scratch.

Elementor template library for 404 pages.

Add parts like textual content, imagery, and a web site search field to your 404 web page. So your customers can simply navigate elsewhere.

Publish your web page whenever you’re prepared. Ensure the “Embrace” drop-down says “404 Web page.” Then click on “Save & Shut.”

Elementor template publish screen for 404 page.

Your customized 404 web page will now show when somebody lands on a URL that doesn’t exist.

Possibility 3: 404 Web page Plugin

Plugins are one other choice to create a customized WordPress 404 web page with out code.

Some plugins to think about are 404page (additionally listed as “Good Customized 404”) and Colorlib 404 Customizer.

We’ll use the 404page plugin for our instance.

Set up and activate the plugin. Then create your 404 error web page by clicking “Pages” > “Add New Web page.”

WordPress Pages side menu with the option to Add New Page.

Make your web page utilizing your web page builder. We’ve made the error web page beneath with Gutenberg, WordPress’s native web page builder. 

Replace the URL slug—the final a part of the URL—to one thing like “404.” 

WordPress Gutenberg editor for a custom 404 page.

Publish your web page. Then click on “Look” and “404 Error Web page.”

WordPress Appearance menu showing the 404 Error Page option from the 404 page plugin.

Head into the “Common” tab and choose your 404 web page from the drop-down. Click on “Save Modifications.”

404 page WordPress plugin settings interface.

Your web site will now load your customized 404 web page when somebody navigates to a web page that doesn’t exist.

Customized 404 Web page Examples

Listed below are 4 customized 404 error web page examples to encourage your individual:

Netflix

Netflix tailors their 404 web page to fashionable reveals with a picture within the background. Which helps them promote their product whereas directing customers to their homepage.

Netflix 404 page.

Wendy’s

Wendy’s features a easy sport on their 404 web page. Which provides a little bit of enjoyable to a web page that’s in any other case irritating to land on. 

Plus, this 404 web page has hyperlinks instantly beneath the sport. To assist customers discover what they want.

Wendy's 404 page.

Ryanair

Ryanair leans on their travel-based model for his or her 404 web page with a related picture background. Additionally they embrace hyperlinks to assist customers proceed alongside their journey.

Ryanair 404 page.

Cadbury

Cadbury contains hyperlinks to their homepage on their 404 web page, together with a playful, related “Oh, Crumbs!” message. And encourages customers to succeed in out to allow them to know in the event that they proceed to come across points.

Cadbury 404 page.

Finest Practices for 404 Pages

The following pointers will assist you craft up an excellent 404 web page in your web site. Bettering the consumer expertise and probably decreasing bounce charges.

Clarify What Occurred

A fast rationalization helps customers perceive why they received an error. To allow them to troubleshoot on their very own.

For instance, Microsoft’s 404 web page explains that the URL could also be misspelled or the web page now not exists:

Microsoft 404 page.

Keep on Model

Your 404 web page shouldn’t really feel disjointed out of your web site. So, inject your model and character into your 404 web page.

Tripadvisor makes use of intelligent language that displays their model on their 404 web page:

Tripadvisor 404 page.

Assist Customers Discover What They Want

Maintain customers flowing by means of your web site by including parts like a search bar to your customized 404 web page. Or hyperlinks to fashionable pages. Or hyperlinks to your high merchandise.

This manner, customers can stick with it with their journey.

Amazon features a search bar and a hyperlink to their homepage inside their 404 web page (together with a picture of one in all many attainable canine):

Amazon 404 page.

Examine Your Web site for 404 Errors

Use Semrush’s Website Audit to test—and monitor—your web site for undesirable 404 errors.

Open Website Audit, enter your area, and click on “Begin Audit.” 

Site Audit interface with “yourdomain.com” entered.

Configure the location audit. (Our configuration information will help for those who get caught.) Click on “Begin Website Audit” whenever you’re prepared.

Site Audit settings configuration screen.

You’ll then get a report outlining your web site’s well being together with an summary of points, warnings, and notices. 

Contained in the report click on “Points.”

Site Audit overview tab showing Site Health and the number of errors, warnings, and notices.

Below “Errors” search for “# pages returned 4XX standing code.” Click on the “# pages” half to view which pages in your web site present a 4XX error. 

Site Audit issues tab showing 84 pages return 4XX status codes.

Search for pages with a 404 error. Click on “View damaged hyperlinks” to see which pages hyperlink to the web page with the 404 error.

Site Audit results for pages that returned 4XX status code.

Take away or change these damaged hyperlinks to a different related (and dealing) hyperlink. So that individuals don’t find yourself on a 404 web page once they click on them. And so search engines like google don’t encounter potential crawl errors.

Site Audit results for broken links and 404 errors.

Then, determine the way you’d prefer to strategy the web page with the 404 error. You’ve gotten two choices:

Depart the Error

404 errors will be helpful. As they point out that sure pages now not exist. And also you would possibly need to talk this to customers. 

For instance, say you deleted a product web page since you now not promote that product. You’d need to depart the 404 error so customers know the product’s web page now not exists.

Redirect Site visitors to a New Web page

Redirects—like a 301 everlasting redirect—can routinely ship customers from one web page to a different once they entry a hyperlink. You would possibly do that for those who changed a web page with a brand new one. And also you need to direct customers from the outdated web page to the brand new web page. 

Think about you modified your about web page from instance.com/about to instance.com/about-us. You’d doubtless need to redirect site visitors from /about to /about-us. As a result of the web page nonetheless exists, nevertheless it has moved. And so that you would not need to maintain the 404 web page.

Enhance Your Web site Expertise with a Customized 404 Web page

Create a customized 404 web page to assist customers discover what they want with none roadblocks.

Then, use Semrush’s Website Audit software to watch your 404 errors. And make sure that customers don’t get caught whereas shopping your web site.

Attempt Website Audit at no cost at this time.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles