Share this article:

You work hard to make sure every link on your website is accessible and working. However, there is still a chance that your visitors click on a non-exist link on your website and come to the 404 Error page not found page

Your visitors get lost and exit your website. Your visitors didn’t find what they want and you lost visitors.

Instead of presenting a default 404 Error page not found or none at all (if your theme does not have one), it is better to customize your 404 Error page to provide your visitors useful information. Ultimately, this will reduce your bounce rate.

If your theme come with the 404.php file, you can customize your message in the WordPress theme editor. If your theme does not come with the 404.php file, you can create one and update to your theme directory.

Method 1: Customize an existing 404 Error Page.

Step 1: Login to your WordPress admin dashboard

Step 2: Click on Appearance -> Editor -> 404 Template (404.php). You would see a similar page as below

WordPress 404 Error page

The above image is the default WordPress 404.php file. Row 20 is the title of 404 Error Page. Row 24 is the 404 Error message. You can modify those lines to provide a better 404 Error Message to your visitors. Below is an example of modification.

<div class="error-404 not-found">
	<header class="page-header">
		<h1 class="page-title"> This Page Is No Longer Exist</h1>
	</header><!-- .page-header -->

	<div class="page-content">
		<p>The page you are accessing is no longer exist, you can find more useful information at our homepage https://www.clipsify.com/</p>
		<?php get_search_form(); ?>
	</div><!-- .page-content -->
</div><!-- .error-404 -->

If you use different theme, you can still follow this instruction, just make sure you locate the correct message code block.

Step 3: Click Update File after you update your message.

Now every time, a visitor clicks on a none existing page, your visitor will be re-directed to this custom 404 Error Page.

Method 2: Create a new 404 Error Page

If your theme does not come with a 404.php file, you can still create one. The following steps will show you a quick and easy way to create one.

Step 1: Create a 404.php file

Step 2: Copy the content of index.php of your current theme to 404.php

Step 3: Then edit your 404 Error Message. Different theme has different structure, but if you pay attention to it, you should be able to modify it and update your error message.

Step 4: Upload the 404.php to your WordPress theme directory.

Now every time, a visitor clicks on a none existing page, your visitor will be re-directed to this custom 404 Error Page.

Share this article: