BlogSpot blogs are now far more optimized than they used to be before. One of the features was "Errors and redirections" The "404 Error" in simple terms is a page that appears when a broken link is clicked and it tells the visitor that the page he clicked no more exits or is deleted. The error page loads inside your post body surrounded a dull grey box. By default you can only add plain text along with HTML tags inside the "Custom Page Not Found" input box using search preferences option page. The message display using this technique looks pretty ugly and we would therefore need a better approach to design a creative 404 Message for a BlogSpot blog. First kindly see a demo of our error page:
Demo
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- iHowMore Default Template -->
<br />
<div class="MBT-404-box">
<div style="line-height: 30px;">
<strong>
<span style="color: red; font-size: large;">
Oops!
</span> <span style="color: #666666;">
Looks like you either clicked a broken link or a Page that no more exits. Kindly do one of the followings:
</span></strong></div>
<ol style="line-height: 25px;">
<li><a href="javascript:history.go(-1)">« Go Back</a> </li>
<li>Report the Problem to us by <a href="http://ihowmore.blogspot.ru/p/contact.html">Clicking Here</a> (<em>This will help us serve you even better</em>) </li>
<li>Go To Homepage by <a href="http://ihowmore.blogspot.com/">Clicking Here</a></li>
<li>Go to <a href="http://www.xml-sitemaps.com/download/ihowmore.blogspot.ru/sitemap.html?view=1">SiteMap</a></li>
</ol>
<br />
<br />
<br />
<div align="center">
<span style="color: #0080ff; font-size: 150px;"><strong>404</strong></span></div>
<br />
<div align="center">
</div>
<div align="center">
<span style="font-size: large;">Page Not Found!</span></div>
</div>
</div>
Make these customizations:
Visit any page of your blog that do not exist to see it working just perfectly. You may type anything after your blog address to see the 404 error appearing. For example like:
Demo
Design 404 Error Page For Blogger
The reason why a box appears around the error message is because of Blogger's default style sheet for status messages. We would therefore override the existing style sheet for the error_page alone using conditional statements. I will be using the CSS code which really make things simple and would add slight modifications to make the error box more attractive.Our 404 page will prompt visitor that he has landed a wrong page and will provide him three important options which are:
- Go Back to the page from where he came from. We will use JavaScript here.
- Contact the Admin and inform him about the broken link. This will help you track broken links
- And finally to provide a link to homepage.
- Go To draft.blogger.com > Settings > Search Preferences
- Click on Edit link next to : Custom Page Not Found
- Inside the box paste the following code:
<div dir="ltr" style="text-align: left;" trbidi="on">
<!-- iHowMore Default Template -->
<br />
<div class="MBT-404-box">
<div style="line-height: 30px;">
<strong>
<span style="color: red; font-size: large;">
Oops!
</span> <span style="color: #666666;">
Looks like you either clicked a broken link or a Page that no more exits. Kindly do one of the followings:
</span></strong></div>
<ol style="line-height: 25px;">
<li><a href="javascript:history.go(-1)">« Go Back</a> </li>
<li>Report the Problem to us by <a href="http://ihowmore.blogspot.ru/p/contact.html">Clicking Here</a> (<em>This will help us serve you even better</em>) </li>
<li>Go To Homepage by <a href="http://ihowmore.blogspot.com/">Clicking Here</a></li>
<li>Go to <a href="http://www.xml-sitemaps.com/download/ihowmore.blogspot.ru/sitemap.html?view=1">SiteMap</a></li>
</ol>
<br />
<br />
<br />
<div align="center">
<span style="color: #0080ff; font-size: 150px;"><strong>404</strong></span></div>
<br />
<div align="center">
</div>
<div align="center">
<span style="font-size: large;">Page Not Found!</span></div>
</div>
</div>
- You can edit the bolded texts with anything you like
- Replace http://ihowmore.blogspot.ru/p/contact.html with link of your contact page
- Replace http://ihowmore.blogspot.com/ with your homepage link
Visit any page of your blog that do not exist to see it working just perfectly. You may type anything after your blog address to see the 404 error appearing. For example like:
http://yourblog.blogspot.com/blablabla
or
http://yourblog.blogspot.com/xyz
or
http://yourblog.blogspot.com/anything-here
etc....
or
http://yourblog.blogspot.com/xyz
or
http://yourblog.blogspot.com/anything-here
etc....
Thank you for sharing such an informative article. I really hope I can see other interesting posts. Keep up the good work!
ReplyDeleteMelbourne Web Developer
Online Computer Tutorials Step By Step. Online Business
ReplyDelete