Enhance Your 404 Web page Template in WordPress (2 Methods)

No Comments

Do you need to enhance your 404 web page template in WordPress?

Enhancing the default WordPress 404 web page will help create a greater consumer expertise, cut back bounce charge, and enhance pageviews.

On this article, we’ll present you the right way to customise your 404 web page template in WordPress, step-by-step.

Why Enhance Your 404 Web page Template in WordPress?

Most guests who land on the default WordPress 404 web page will go away your WordPress web site rapidly.

This can enhance your bounce charge, create a poor consumer expertise, and may even negatively influence your search engine rankings.

By bettering your WordPress 404 web page, you possibly can ship guests to in style posts, enhance pageviews and cut back bounce charge, and switch one time guests into long-term readers and clients.

When a customer stays in your web site longer, they’re extra prone to make a purchase order, learn extra posts, be a part of your electronic mail listing, and extra.

Plus, it could enhance your WordPress search engine marketing, so that you’ll get extra search engine site visitors.

Be aware: it’s vital to create a customized 404 web page, however you also needs to monitor what 404 URLs guests use to go to your web site after which arrange correct redirects to enhance search engine marketing rankings.

For extra particulars, see our information on the right way to simply monitor 404 pages and redirect them in WordPress.

With that mentioned, let’s check out how one can enhance your 404 web page template in WordPress.

Technique 1. Create a Customized 404 Web page in WordPress With No Code

The perfect and most newbie pleasant manner of bettering your 404 web page template is utilizing the SeedProd web page builder plugin.

SeedProd is the greatest touchdown web page builder for WordPress. It permits you to create, edit, and customise your WordPress pages with out writing any code.

With this plugin, you possibly can simply create a customized 404 web page utilizing the included 404 web page templates.

Very first thing you could do is set up the SeedProd plugin. For extra particulars, see our step-by-step information on the right way to set up a WordPress plugin.

Be aware: there’s a free model of SeedProd out there, however we’ll be utilizing the Professional model because it has the 404 web page templates we want.

Upon activation, you could navigate to SeedProd » Settings and enter your license key. You could find this data in your account web page on the SeedProd web site.

After that, go to SeedProd » Pages and click on ‘Arrange a 404 Web page’ button within the ‘404 Web page’ meta field.

This can carry you to a web page the place you possibly can choose your 404 web page template.

There are dozens of professionally designed 404 web page templates you possibly can select that will help you get began rapidly.

To pick out a template, hover over it and click on the ‘Checkmark’ icon. For this tutorial, we’ll be utilizing the ‘Oh No 404 Web page’ template, however you need to use any template you want.

After choosing a template, you’ll be taken to the drag and drop builder, the place you can begin customizing your 404 web page.

You’ll discover blocks and sections you possibly can add to your 404 web page on the left facet of the display screen. The proper facet of the web page is the stay preview. Each component on the web page may be edited and customised.

Very first thing, we’re going so as to add textual content and inform customers what to do subsequent. As an alternative of merely touchdown on a 404 web page and leaving, you possibly can direct your guests in direction of precious content material and the following actions to take.

To do that, drag the ‘Textual content’ block over to your web page, and click on it to alter the textual content.

Subsequent, we are going to change the house web page button hyperlink and as a substitute hyperlink to one of the precious items of content material.

This generally is a publish in your WordPress weblog that’s the most well-liked or one which brings you probably the most income.

First, drag over the ‘Headline’ block and add your new headline.

Then, drag over one other ‘Textual content’ block and enter some textual content that describes your article.

After that, click on on the button to carry up the button editor display screen.

Right here you possibly can customise the textual content, colour, dimension, and extra.

Add Your Most In style Posts to Your WordPress 404 Web page

Subsequent, you possibly can add your hottest articles. Since these articles are confirmed to be in style, there’s an excellent likelihood your guests will discover one thing they like.

The best manner to do that is through the use of the MonsterInsights plugin. It’s the greatest analytics resolution for WordPress utilized by over 3 million web sites.

With this plugin, you possibly can merely add in style posts wherever in your WordPress web site.

For extra particulars, see our information on the right way to show in style posts by views in WordPress.

As soon as the plugin is activated and arrange, all you need to do is add a single shortcode to your web page.

To do that, merely drag the ‘Shortcode’ block over to your web page.

Then, enter the next shortcode to show your hottest posts.

The theme=“beta” portion refers to how your in style posts will show. If you wish to see how the totally different themes look, then go to Insights » In style Posts and click on on ‘In style Posts Widget’.

Within the ‘Select Theme’ part, you possibly can view every of the themes and their names.

You can even add a headline above your in style posts following the identical steps as above.

Add a Contact Type to Your WordPress 404 Web page

After that, you possibly can add a contact type on to your 404 web page. This lets your guests attain out to you in the event that they couldn’t discover what they have been searching for within the hyperlinks above.

One of the best ways so as to add a contact type to your web site is utilizing the WPForms plugin. It’s the greatest contact type plugin for WordPress utilized by over 4 million web sites.

For extra particulars, see our step-by-step information on the right way to create a contact type in WordPress.

As soon as the plugin is activated and arrange, you possibly can merely drag the ‘Contact Type’ block over to your web page.

Then, all you need to do is choose your contact type from the drop down listing.

It’s good to create your contact type first earlier than you possibly can add it to your 404 web page.

You can even add a ‘Headline’ or ‘Textual content’ block above your contact type.

Comply with the identical steps as above so as to add these blocks.

When you’re achieved making modifications, be sure to click on ‘Save’ within the higher proper nook of the web page.

If you wish to publish your web page stay, then choose the drop down arrow subsequent to ‘Save’ and click on ‘Publish’.

You can even change the brand and navigation menu by clicking on them and making modifications with the panel on the left, then following the identical modifying course of as above.

Be at liberty to proceed customizing your web page, including new blocks, and testing totally different layouts to see what your guests favor.

Should you’re a WooCommerce retailer proprietor, then you possibly can customise your 404 web page by displaying in style merchandise to assist get extra gross sales.

To make your new 404 web page lively, navigate again to SeedProd » Pages after which swap the ‘404 Web page’ toggle to ‘Lively’.

Now, your guests will see your excessive changing 404 web page, as a substitute of the default possibility.

Professional tip: you possibly can monitor the efficiency of your WordPress 404 web page to see the way it’s changing and which modifications are probably the most helpful. For extra particulars, see our newbie’s information on the right way to set up Google Analytics in WordPress.

Technique 2. Create a Customized 404 Web page in WordPress By Including Code

This methodology isn’t as newbie pleasant as a result of you’ll have to add code and modify WordPress theme information.

Should you haven’t achieved this earlier than, then please see our newbie’s information to pasting snippets from the net into WordPress.

First, you could create a brand new file in your WordPress theme folder and title it 404.php. In case your theme already has a 404.php file, then you definately’ll have to edit that file as a substitute.

To edit this file, you could hook up with your WordPress internet hosting account with an FTP shopper, or their file supervisor software.

After you’re linked to your web site, you possibly can see your 404.php file in your WordPress theme’s folder.

Be aware: earlier than you customise your WordPress theme, we suggest backing up your WordPress web site. For extra particulars, see our information on the right way to backup and restore your WordPress web site.

Show Most In style Posts on 404 Web page

Very first thing you could do is set up and activate the free WordPress In style Posts plugin. It’s one of many greatest in style posts plugins for WordPress.

For extra particulars, see our step-by-step information on the right way to set up a WordPress plugin.

Upon activation, you could add this template tag into your 404.php file the place you need to show the favored posts.

<?php wpp_get_mostpopular(); ?>

Show Most Commented Posts on 404 Web page

So as to add probably the most commented posts to your WordPress 404 web page we’ll be utilizing the identical plugin you activated above.

Merely add the next template tag the place you need to show your most commented posts.

<?php wpp_get_mostpopular(“vary=all&order_by=feedback”); ?>

You can even take a look at our information on the right way to show most commented posts in WordPress.

Show Latest Posts on 404 Web page

There are a number of methods to show latest posts in WordPress.

The best manner is so as to add this template tag in your 404 template to show your latest posts.

<?php wp_get_archives( array( ‘kind’ => ‘postbypost’, ‘restrict’ => 10, ‘format’ => ‘customized’, ‘earlier than’ => ”, ‘after’ => ‘<br />’ ) ); ?>

Show Random Posts on 404 Web page

If you wish to show a random listing of posts in WordPress, then you possibly can merely add this code in your 404 template the place you need to show a random listing of posts out of your web site.

<ul>
<?php
$posts = get_posts(‘orderby=rand&numberposts=5’);
foreach($posts as $publish) { ?>
<li><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a>
</li>
<?php } ?>
</ul>

Add Month-to-month Archives with Compact Archives

In case you have loads of content material in your web site, then one nice method to manage that is by exhibiting your month-to-month archives.

Right here at WPBeginner, we show our month-to-month archives on our 404 web page utilizing the Compact Archives plugin. This plugin is developed and maintained by our workforce.

For extra particulars, see our information on the right way to create compact archives in WordPress.

As soon as the plugin is activated and arrange, merely add the next code to your 404.php file.

<p><sturdy>By Date</sturdy></p>
<ul>
<?php compact_archive($type=’block’); ?>
</ul>

When a consumer lands in your 404 web page they’ll see your compact publish archives.

Right here’s the way it shows on our 404 web page.

A Pattern 404 Template for WordPress

Here’s a pattern 404.php file primarily based on the default WordPress theme Twenty Twenty-One’s 404 web page template.

<?php
/**
* The template for displaying 404 pages (not discovered)
*
* @hyperlink https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package deal WordPress
* @subpackage Twenty_Twenty_One
* @since Twenty Twenty-One 1.0
*/

get_header();
?>

<header class=”page-header alignwide”>
<h1 class=”page-title”><?php esc_html_e( ‘Nothing right here’, ‘twentytwentyone’ ); ?></h1>
</header><!– .page-header –>

<div class=”error-404 not-found default-max-width”>
<div class=”page-content”>
<p><?php esc_html_e( ‘It seems to be like nothing was discovered at this location. Perhaps attempt a search?’, ‘twentytwentyone’ ); ?></p>
<?php get_search_form(); ?>

<h4>When you’re right here, take a look at a few of our in style content material:</h4>

<div class=”col1″>
<div class=”col-header”>
<sturdy>In style</sturdy>
</div>
<?php wpp_get_mostpopular(); ?>
</div>

<div class=”col2″>
<div class=”col-header”>
<sturdy>Feedback</sturdy>
</div>
<?php wpp_get_mostpopular(“vary=all&order_by=feedback”); ?>
</div>

<div class=”col3″>
<div class=”col-header”>
<sturdy>Latest</sturdy>
</div>
<?php wp_get_archives( array( ‘kind’ => ‘postbypost’, ‘restrict’ => 5, ‘format’ => ‘customized’, ‘earlier than’ => ”, ‘after’ => ‘<br />’ ) ); ?>
</div>

</div><!– .page-content –>
</div><!– .error-404 –>

<?php
get_footer();

Evaluate this 404 template with the default template in Twenty Twenty-One.

You’ll discover that proper after the search type we’ve got added our customized code to show in style, most commented, and up to date posts.

After that we added customized CSS to the WordPress theme stylesheet to divide it into columns.

For extra particulars, see our information on the right way to simply add customized CSS to your WordPress web site.

.col1, .col2, .col3 {
width:30%;
float:left;
padding:0px 10px 10px 10px;
margin:0px;
}
.col3:after{
clear:each;
}
.col-header {
background:#28303D;
colour:#D1E3DD;
margin:0px;
padding:1px;
text-align:middle;
}

That is the tip consequence after including the customized 404 web page code above.

We hope this text helped you enhance your 404 web page template in WordPress. You might also need to see the greatest WordPress 404 error web page design examples and our professional picks of the greatest net push notification software program to develop your web site site visitors.

Should you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can even discover us on Twitter and Fb.

The publish Enhance Your 404 Web page Template in WordPress (2 Methods) appeared first on WPBeginner.

    About Marketing Solution Australia

    We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

    Request a free quote

    We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

    Subscribe to our newsletter!

    More from our blog

    See all posts

    Leave a Comment