The not found page on Blogger is really boring and unhelpful. It doesn’t encourage your readers to visit other areas of your site or help them find something they are looking for.
This tutorial will show you how to edit the content and design to make it more user friendly.
If you want to have a look at your 404 not found page, the easiest way to get to it is to type 404
after your URL – http://yourblogname.blogspot.com/404/
How to add content to your custom 404 page in Blogger
1. Go to Settings > Search preferences, and click edit under Custom Page Not Found.
2. Now you can add any message and HTML that you want, like so
<h2>Sorry, this page could not be found</h2>
<p>Try the search box below to find what you're looking for.</p>
<form id="searchThis" action="/search" style="display: inline; margin: 20px auto;" method="get"><input onfocus="if(this.value==this.defaultValue)this.value='';" value="Search this blog" type="text" id="searchBox" onblur="if(this.value=='')this.value=this.defaultValue;" vinput="" name="q" /> <input id="searchButton" value="Go" type="submit" /></form>
Useful things to add to your 404 page
- A simple link or a clickable button to direct readers to another page like your contact page.
- Some popular blog topics using post labels or create a list of some popular posts.
- A newsletter signup/optin..
- A search box or social media icons
How to edit the design of your custom 404 page in Blogger
Want to edit the design to match your blog theme and branding? Here’s how to do that. First let’s take a look at Bloggers default code.
/* Blogger CSS for 404 Page
----------------------------------------------- */
.status-msg-wrap {
font-size: 110%;
width: 90%;
margin: 10px auto;
position: relative
}
.status-msg-border {
border: 1px solid #000;
filter: alpha(opacity=40);
-moz-opacity: .4;
opacity: .4;
width: 100%;
position: relative
}
.status-msg-bg {
background-color: #ccc;
opacity: .8;
filter: alpha(opacity=30);
-moz-opacity: .8;
width: 100%;
position: relative;
z-index: 1
}
.status-msg-body {
text-align: center;
padding: .3em 0;
width: 100%;
position: absolute;
z-index: 4
}
.status-msg-hidden {
visibility: hidden;
padding: .3em 0
}
.status-msg-wrap a {
padding-left: .4em;
text-decoration: underline
}
If there’s certain things you want to change, you’ll need to override it. To do this copy the above code and paste it into the CSS section of your blog (Template > Edit HTML > above ]]></b:skin>
) then change the values to suit you.
Add some custom styling to change the design of the message
1. Go into the Template > Edit HTML and find ]]></b:skin>
2. Right above ]]></b:skin>
add the following CSS
/* Custom 404 Page by XOMISSE
----------------------------------------------- */
.status-msg-wrap { /* style entire wrapper */ }
.status-msg-body { /* style div around text */ }
.status-msg-border { /* style border */ }
3. To give us a plain starting point we’ll add some CSS as shown below. This will remove the default CSS such as the border, change the background to white, change the width to 100%, remove top spacing and hides the repeat box.
/* Custom 404 Page by XOMISSE
----------------------------------------------- */
.status-msg-border {border: 0;}
.status-msg-body {background-color: #fff;}
.status-msg-wrap {width: 100%; margin: 0px auto;}
.status-msg-bg {background: transparent;}
4. Now you can continue to add to the CSS to suit your overall blog design. If you only want to style the 404 Page and not the breadcrumb “showing posts with label” message then use conditional tags to target only the error page.
21 responses to “How to customise the 404 not found page on Blogger”
hi!
Because I changed the “showing posts with label” to Search Results for: , the 404 page automatically changes to Search Results for: . Is there a way to fix this so that i can have both a 404 page and a Search Results for: page?
Hello, you can use conditional tags to target only the error page and only the label/search pages.
Thanks for the helpful post.
I will try to apply on my blog.
very good tips for custum error page…thanks xomisse
Thank You soo Much for this useful post! I was looking for it for a long time.
thanks for this post. help me alot. keep posting such content for blogger in future.
Thanks for the article. I just applied it on my blog
Wow this is luvly, am gonna implement it on my blog. I just pray it works for me.
Thanks for this useful tutorial
Thanks for this wonderful update it was really helpful
Is there any other way in HTML source that we can customize it.
Nice design. I added custom 404 page for my website. I customized according to my requirements and added extra code. It looks good thank you.
What a great tutorial. Thanks so much for sharing.
I did it slightly differently by copying your code and putting it in the CSS edit field in theme/customise/advanced/add_CSS/Add_Custom_CSS and then hit ‘apply to blog’ and it seems to work really well. I hope that’s not the wrong thing to do. I added to provide some padding to make it look less crammed.
Thanks again.
David
Hi David! By adding CSS to the Theme Customiser CSS section, it will just place it within your theme (see here for details). That way is fine but I usually find that more errors can creep into your code using that method so just something to keep an eye on.
I am returning to blogger after several years. I see a lot of things have changed, they started providing lots of configuration options like modifying 404, robot.txt etc.
Thank You so much, it really working well.
Thank You so much, it really working well. I looking for an article to help me to do this, finally i founded
nice information
thank you for share.
thank u sir… helpful artical
nice