A 404 page is what a user sees when they try to reach a non-existent page on your site (because they’ve clicked on a broken link, the page has been deleted or they’ve mistyped a URL).
While the standard 404 page can vary depending on your web host, it doesn’t usually provide the user with much useful information and users may just surf away from your site. Therefore, Google recommend creating a custom 404 page that provides the user with more information about your site and its content.
The Google 404 widget is a quick and easy way to embed a search box on your custom 404 page and provide users with useful information designed to help them find the information they need. Where it can, the Google widget will also suggest other ways for the user to find the information they need, thus increasing the likelihood that they’ll continue to explore your site.
You should set up a Google webmaster account and submit an XML sitemap of your blog to ensure the Google 404 widget works effectively.
Please note: The Google 404 widget plugin is NOT a WordPress widget. It is simply the term Google use to describe their enhanced 404 page script.
Currently the plugin only outputs the Google 404 widget in English (UK). Will hopefully add support for other languages in future versions.
Also looking to add the possiblity to change the appearance of the widget.
You should first set up a Google webmaster account and submit an XML sitemap of your blog to ensure the Google 404 widget works effectively.
- Download the archive file and uncompress it.
- Put the “google404″ folder in “wp-content/plugins”
- Enable in WordPress by visiting the “Plugins” menu and activating it.
- Add the following code to your 404.php template.
<?php if ( function_exists('google404') ) google404(); ?>