The 404 (Page Not Found) error is displayed when a website visitor try to visit a non-existing or expired URL. It is always advisable to make a custom 404 error page in order to engage your website visitors on your website. If you are using WordPress thesis theme you can easily customize it to add a 404 hook to make your 404 page such that it contains
- A link back to the website/blog homepage.
- A category listing or page listing.
- A search box front and center.
- Something creative or attractive to retain your website visitors
- Automatic redirection to the main page
A sample of the thesis custom 404 Hooks both for the title and for the content is given below. You can adopt and modify it as per your specific needs. 
/* Custom 404 Hooks */
function custom_thesis_404_title() {
?>
We are looking it out for you.
<?php
}
remove_action('thesis_hook_404_title', 'thesis_404_title');
add_action('thesis_hook_404_title', 'custom_thesis_404_title');
function custom_thesis_404_content() {
?>
<p>We are sorry the we can not find what you want?</p>
<p> Put your code/information here </p>
<?php
}
remove_action('thesis_hook_404_content', 'thesis_404_content');
add_action('thesis_hook_404_content', 'custom_thesis_404_content');There is also an easy way to do the same thing via the WordPress Plugin known as Thesis OpenHook. You first need to download and install Thesis OpenHook in order to use it.

{ 0 comments… add one now }