Do not annoy your readers – Customize your 404 page
We bloggers are very much aware of this “404 Error : Page Not Found”. We all, more or less try to optimize the design of this page thereby trying to help our readers to find what they were looking for. But most of us just end up with some encouraging sentences or interesting post links of our choice which may not match reader’s need. Let me show you how to give your readers more relevant options in the 404 page so that they don’t have to flee from your blog.
Google Webmaster Tools :
Most of us(bloggers) are well aware of the Webmaster tools provided by Google. Now if anyone is unaware of it then don’t be a minute late. Signup now. After you are finished with registration log into it & follow the steps below.
1. Go to Tools > Enhance 404 pages.
2. Now copy the code given. It looks somewhat like this. But not this. Get yours.
| <script type=”text/javascript”> var GOOG_FIXURL_LANG = ‘en’; var GOOG_FIXURL_SITE = ‘http://www.ampercent.com/’; </script> <script type=”text/javascript” src=”http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js”></script> |
3. Copy this code & paste it in your 404 page within the proper <div> tags.
4. Now you can skip this step if you wish but if you’re familiar with CSS, you can put this additional code to change the appearance of the 404 widget on your custom 404 page. You can put it anywhere in the 404.php.
| <style type=”text/css”> /* Widget content container */ #goog-wm { width: 800px; /* Edit this to change the width of the widget */ padding: 1em; border: 3px solid #aebd63; /* Change the thickness, style & colour of the border of the widget */ background-color: #ffffff; /* Change this hex code to change the background colour of the widget */ } /* Heading for “Closest match” */ #goog-wm h3.closest-match { color: #8f2831; /* Change this hex code to change the colour of the text */ border-bottom: 3px dashed #aebd63; /* Change this hex code to change the colour of the underline*/ padding-bottom: 0.5em; font-size: 170%; /*Change this to change the size of the text*/ margin: 0; /* No need to edit this */ } /* “Closest match” link */ /* Heading for “Other things” */ /* “Other things” list item */ /* Site search box */ |









