How to Customize 404 Page in Thesis

Apr 28, 2010 by

No one likes the 404 page this is shown when user is searching for something and there is nothing related to that in your blog or website and a page displays saying the requested page that doesn’t exist.Normally the user will hit the back button of the browser to go back or close the window, so as a result you will loose a huge amount of good traffic.

You can customize 404 page in Thesis to some some possibly related content on your 404 error page to your visitors so they will not leave our website or blog and visitors will still stick to your blog or website.For doing this you will need a plugin called Smart 404 read Smart 404 WordPress Plugin Review.

Also read:

Thesis 1.7 Premium WordPress Theme Review and New Features

How to Move Navigation Menu Below The Header in Thesis

How to Customize Block Quote in Thesis WordPress Theme

How To Change Background Color of Header in Thesis

Customize Thesis with OpenHook WordPress Plugin

How to Add Clickable Header Image in Thesis

How to Add Pagination in Thesis

Below are the steps to customize 404 page in Thesis theme:

  • Login to your FTP Account using FTP client
  • Navigate to Thesis Theme Folder in wp-content/themes/ folder
  • Rename Custom Sample folder to Custom
  • Now Login to admin panel of your blog
  • Select Custom File Editor option in Thesis options menu in admin panel of your blog
  • Choose  custom_functions.php and click Ediit selected file button
  • Paste the code below in the file editor

/* Custom 404 Hooks */

function custom_thesis_404_title() {

?>

The Page you requested is somewhere here.

<?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>Can't find what you looking for?</p>

<?php if (smart404_loop()) : ?>

<p>Check out These related posts:</p>

<?php while (have_posts()) : the_post(); ?>

<h4><a href="<?php the_permalink() ?>"

  rel="bookmark"

title="<?php the_title_attribute(); ?>">

<?php the_title(); ?></a></h4>

  <small><?php the_excerpt(); ?></small>

<?php endwhile; ?>

<?php endif; ?>

<?php

}

remove_action('thesis_hook_404_content', 'thesis_404_content');

add_action('thesis_hook_404_content', 'custom_thesis_404_content');
  • Then Click The Big Ass Save button and you are done.

You can see an example of customized 404 page in Thesis by Opening this following link

http://www.technozeast.com/error

Customizing 404 page will help you to lower down your blog’s bounce rate.

Grab a copy of Thesis theme

What People Are Looking For:

404 thesis, custom 404 in thesis wordpress, custom 404 page thesis, custom 404 thesis wordpress, thesis 404 pages not on root, thesis custom 404, thesis custon 404, wthesis wordpress customise 404 page.

2 Comments

  1. Mohd Isa

    i has try this, but not working. why?

    • Shivendu Madhava

      This works well if you want we can help you with thesis customization please contact us via contact form :)

Leave a Comment

*