Add Google search capabilities to your site's 404 "page not found" template.
– This plugin has been adopted! Please review the description below. –
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.
For best results, you should set up a Google webmaster account and submit an XML sitemap of your blog to ensure the Google 404 widget works effectively.
Find out more here…
Currently the plugin outputs the Google 404 widget in US English by default, or tries to use the current WordPress language.
You can use the google_404_language
filter to specify a different language code.
Also looking to add the possibility to change the appearance of the widget.
The Google 404 widget plugin is NOT a WordPress widget.
It is simply the term Google use to describe their enhanced 404 page script.
This plugin was originally developed by Ben Huson and was adopted in September 2014 thanks to the adopt-me tag.
The ability to customize the CSS from an options page within the WordPress Admin area, attempt to dynamically inject the Google search box without needing to modify your template files, and more!
You should first set up a Google webmaster account and submit an XML sitemap of your site to ensure the Google 404 widget works effectively.
Add the google404()
function call to your 404.php template.
if ( function_exists( ‘google404’ ) ) { google404(); }
You could also add this code to your theme’s index.php, single.php, image.php, archive.php and search.php below the HTML that is displayed if no posts are present (where you insert this may vary from theme to theme).
You may also use the google_404_styles
and google_404_language
filters for manually overriding the CSS values or language used by the Google 404 widget.
Currently no FAQs.