A default 404 page is a dead end. Google’s own team now recommends replacing it with a custom page that helps visitors find their way back (I covered the details in Google’s guidance on custom 404 pages). In this tutorial, I’ll show you how to build one in Divi using the Theme Builder, with no extra plugin.

What You’ll Build

By the end, you will have a 404 page that includes:

  • A friendly message that explains what happened
  • A search bar
  • Links to your top categories or services
  • A list of your latest posts
  • Your normal site header and footer

Before You Start

You’ll need Divi installed and active. I’m using Divi 5, but the Theme Builder approach is the same idea in Divi 4, with small differences in the interface. Menu labels may vary slightly between versions.

Step 1: Open the Theme Builder

In your WordPress dashboard, go to Divi → Theme Builder. This is where you control templates for different parts of your site.

Step 2: Add a New Template for the 404 Page

  1. Click Add New Template.
  2. Choose Build New Template.
  3. In the Template Settings window, scroll down to the Other section.
  4. Select 404 Page.
  5. Click Create Template.

This tells Divi to apply the template only when a visitor hits a URL that does not exist.

Step 3: Choose Your Header and Footer

The new template includes separate areas for the header, body, and footer. If your website already uses a Global Header and Global Footer, you can keep those consistent with the rest of your site. You can also create custom header or footer layouts specifically for the 404 page if needed.

I recommend keeping your regular navigation visible so visitors have an easy way to return to other sections of your website.

Step 4: Add a Custom Body and Build the Layout

Click Add Custom Body, then Build Custom Body. This opens the Visual Builder. Here is a layout that works well:

The message

Add a Text module with a clear heading and one or two friendly lines. Something like: “This page can’t be found. It may have been moved or removed, but you can still find what you need below.” Keep it short and plain. A little personality is fine, but avoid jokes that hide the fact that something went wrong.

The search bar

Add a Search module below the message. Visitors who know what they’re looking for can use it to search your website directly, so give it a prominent position.

Helpful links

Add a few Button or Blurb modules that link to your most important sections, such as your main service pages, top blog categories, and contact page. Pick the destinations that would help most visitors, not every page on the site.

Latest posts

Add a Blog module and configure it to display your three or four latest posts. This is the simplest way to show recent content.

If you’re using Divi 5, you can also build a custom post list with the Loop Builder, giving you more control over the layout and appearance. I used this approach in my featured post and post list tutorial.

Step 5: Save and Test

  1. Click Save in the Visual Builder, then save the Theme Builder.
  2. Open a new browser tab and visit a URL on your site that does not exist, for example yoursite.com/this-page-does-not-exist.
  3. Confirm that your custom page appears.
  4. Check it on mobile as well.

If you still see the old theme error, clear your caching plugin and any server or CDN cache, then test again.

Step 6: Confirm It Returns a Real 404 Status

This step is easy to skip, and it matters. A custom 404 page should still return a 404 status code, not a 200. If it returns a 200, Google can treat it as a soft 404.

To check, open your browser’s developer tools, go to the Network tab, load a broken URL, and look at the status of the first request. It should read 404. You can also use an online HTTP status checker.

Remember to test the URL after clearing your cache, especially if you’re using a caching plugin, server-level caching, or a CDN.

Common Mistakes to Avoid

  • Redirecting every 404 to the homepage. It confuses visitors and can create soft 404s. Some SEO plugins offer this as a setting, so make sure it is off.
  • Removing the header and footer. Visitors need navigation to get out.
  • Too many links. A few good options beat a wall of links.
  • Hiding the error. Be clear that the page was not found, then help the visitor move on.
  • Forgetting to test after caching changes. Cached error pages can show stale content.

Frequently Asked Questions

Does a custom 404 page help SEO?

Not directly. Google says 404 errors do not hurt rankings. A custom page helps visitors stay on your site, which is a user experience and business benefit.

Do I need a plugin for a custom 404 page in Divi?

No. The Divi Theme Builder handles it natively.

Should I redirect my 404 pages to the homepage?

No. Redirect only when there is a relevant replacement page. Otherwise let the URL return a 404.

Why does my custom 404 page not show?

Usually it is caching, or the template’s Use On setting was not saved as a 404 Page. Clear all caches and check the template settings.

Can I customize a 404 page without changing my website’s global design?

Yes. Divi’s Theme Builder lets you create a separate 404 template with its own body layout. You can retain your existing global header and footer while customizing the error page content.

Need Help Building or Fixing Your Divi Site?

I design, maintain, and optimize WordPress and Divi sites, including error pages, redirects, and technical SEO.

WordPress Maintenance & Support →

Found this useful? Please share it with your network.
Website designer and Technical SEO specialist in India

ABOUT THE AUTHOR

Sangeetha M

Web Designer & Technical SEO Specialist

Sangeetha is a WordPress & SEO specialist with 15+ years of experience designing and building websites, sharing practical tutorials and beginner-friendly guides on WordPress, SEO, and website growth.

More on This Topic

Designing SEO-Friendly Websites That Convert

Sangeetha is a WordPress & SEO specialist with 15+ years of experience designing and building websites, sharing practical tutorials and beginner-friendly guides on WordPress, SEO, and website growth.

Share: