Featured Posts

Best 10 SEO Plugins for Wordpress Most of the blogs nowdays built on wordpress and for better great search engine optimization (SEO), it is always advisable to use plugins for wordpress which are quite easy to install. These are some of...

Readmore

Top 126 Ajax Tutorials Heres a list of the top 126 Ajax tutorials out there. They are organized into a wide range of categories from Getting Started to Shopping Carts. Everything you need regarding Ajax is right here. This...

Readmore

Best Online To Do list and Task Managers Recently I was searching for online task managers for my web freelancing work & projects as I noticed off late that too many of my to-dos were not getting done. Often I am accused of being messy &...

Readmore

Creating A Custom 404 Page in Wordpress Without Using... I have recently changed my blog theme to The Seven Five is a semi-automatic “Lifestream” WordPress theme, the theme is great & I am luving  it. I added some pages like archives page, 404 error...

Readmore

  • Prev
  • Next

Creating A Custom 404 Page in WordPress Without Using Plugins

Posted on : 21-11-2009 | By : admin | In : Blogging, Web Design, blogs, wordpress

1

I have recently changed my blog theme to The Seven Five is a semi-automatic “Lifestream” WordPress theme, the theme is great & I am luving  it. I added some pages like archives page, 404 error page. I could have added a plugin for a 404 page but I like to make a own custom 404 error page, you can check my 404 page.  It is very simple & you can do to just by doing the following steps

# Create a 404.php page in your themes folder if you do not have one. It’s best to use the same styles your blog so that it looks a part of the blog.

# Add the basic Add these basic code lines in your 404 file. The beast way is to put the same Header, footer lines & and insert content as u wish.

<?php get_header(); ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

These are some of the tags that you can use:

Display Archive by Months:

<?php wp_get_archives(’type=monthly’); ?>

This code will display archive by months, but it will list all months.

Display list of Categories

<?php wp_list_cats(); ?>

This code will list all categories on your blog.  you can style them however using list tags or others.

Display Recent Posts

<?php get_archives(’postbypost’, ‘17?, ‘custom’, ‘<li>’, ‘</li>’); ?>

This shows the most recent Posts written on your Blog.

There are other tags too which can be used but these are the most basic ones to use.

Add these basic code lines in your 404 file. The best way is to put the same Header, footer lines & and insert content as u wish.
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Comments (1)


CheapTabletsOnline.Com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. Low price pills. Order pills online

Buy:Acomplia.Lasix.Female Pink Viagra.Cozaar.Aricept.Amoxicillin.Seroquel.Benicar.Female Cialis.Lipitor.Nymphomax.Zetia.Ventolin.SleepWell.Prozac.Lipothin.Wellbutrin SR.Zocor.Advair.Buspar….

Write a comment