How To Create Individual Character Is Dye-in-the-wood And Wordpress User Friendly 404 Page

How To Create Individual Character Is Dye-in-the-wood And Wordpress User Friendly 404 Page

By:




As a webmaster, I'll make mistakes, you will make mistakes, we all make mistakes. Some mistakes we can through a 404 error page to solve. Generally speaking, this page will appear the following tips: "404 error: I'm sorry, you find files/page does not exist." Such page facing increase user experience without any help, so how to design more friendly 404 pages?

404 page not only is to give the user pointed out the problem, you need to provide a feasible solution.

In the wordpress the default theme in kubrick, 404 pages do simple and ugly, believe that you are not too good. This paper will be taught you how to produce a good 404 pages.

In fact, a good 404 pages in the design is not complex, the purpose is to help web site users to find the information they desire, and continue to read through your site. Useless talk not say more, off we go!

Assuming that you are visitors to the site.

If you yourself are web site, reached 404 pages, would be because you hope to find what other information, otherwise can't come here. So, there are several things that you absolutely can't do:

First, think people is probably somewhere to click on your links to reach 404 error page. If it is really so, who should blame for this? They? No, it is you-adsense.

Second, to let 404 pages of design patterns and site on the other page to remain consistent. Some adsense like ingenuity, don't consider users accept ability. For example, a webmaster will this page design became a common Windows blue hold, the result is not so good, people are fleeing his web site.

Third, if you intend to open a joke, like the design of physical memory physical memory dump complete mentioned above, the best guarantee that everyone can accept it.

Let us to design a perfect 404 error page

Ok, now that know don't do anything, you also need to know the user to your site is to want to look for some specific content, they are usually follow a link to come here. Now, as a webmaster you, need to offer all kinds of ways to help them to achieve purpose.

Conversion rate experts website design I most like, at the same time it also inspired my inspiration.

It provides four options to help users:

1, to search

2, check whether there are links spelling mistakes.

3, in searching the web site map.

4, return to your home page.

Apple's official website directly presented to the site map user, this idea is also very good. You can according to be fond of will choose one of them.

I suggest you choose the conversion rate experts 404 solutions, and design is also easy to implement, and I'm not a tautology. Here, I would have to rise by a: display and user input of some of the web site related url of the list. In order to achieve this function, we need to study and analysis the url address and see if I can find something:

A 404 error pages can provide people what useful data?

Many webmaster would think that 404 is a blind Angle. In fact, it can provide many useful data can help you to understand the users of the site search intentions. Let's study the url address: domain name/behind all of the characters will cue you users want to find anything.

Happily, the system to store the information wordpress, you can through the variable $wp_query-> query_vars [' name '] find it. The wp_query kind of function of storage is a series of treatment after the standardization of the web site, we can use that information to construct your 404 pages.

First, let's check to see if the existence and $wp_query-> query_vars [' name '] the name of the page variables of the page matching directly.

$s = $wp_query-> query_vars [' name ']; $s = preg_replace (" / (. *)-(HTML | HTM | PHP | asp | aspx) $/ ", "$1", $s); $posts = query_posts (array (' post_type '= >' any ', 'name' = > $s)); If the above statement does not output results, you need to use str_replace () function will $s string of "" with a space take out, another search. When we again use $s variables, want to put it on the outside of the if, statements to check whether the inquires before the result.

$s = str_replace ("-", "", $s); If (count ($posts) = = 0) {$posts = query_posts (array (array (' post_type '= >' any ', 'name' = > $s));} now, we got some output results, they are some user input before the site with related log, at least, we think is related with the following statements, in the form of the list displayed:

If (count ($posts) > 0) {echo "< p > Were you looking for < strong > one of the following < / strong > posts or pages? < / p >"; Echo "< ul >"; Foreach ($posts as $post) {echo '< li >'; Echo '< a href = "'. Get_permalink ($post-> ID). '" >'. $post-> post_title. '< / a >'; Echo '< / li >'; } echo "< / ul >"; If you feel so do} too trouble, can be installed plugin smart 404. It introduced the realization of the function and it almost.

Now a great 404 will make, if meet the conditions of the log attention too much, you don't have a a show them out, the selection of part of the can. In addition, the 404 error also provides a useful information is the referrer (user background) : if, someone and you website made a wrong web link, or link to a page no longer exists. So, you need to do the last thing is:

Avoid the appearance of 404 pages

Use Google analytics have the advantage that can check the referrer information, so you can find carrying the users of the site. It can help you the url pointing to the right web page, can also found that those with you to make a mistake of the website links to web site, in order to inform the fixed link webmaster.

Another good tracking website is to use the wrong method 404 Google adsense tools. In "diagnosis-grab mistakes" menu, Google will put you in the website may generate 404 wrong place one by one to shown out:


About the Author:
I am a professional photographer based.nikon battery,canon camera battery,Panasonic HDC-TM900 Battery,JVC BN-VG108U Battery



Article Originally Published On: http://www.articlesnatch.com


|

Loading...
Related....
Videos...

Recent Site-Promotion Articles

Comments

Still can't find what you are looking for? Search for it!

Loading

Copyright 2005-2011 ArticleSnatch, LLC - All Rights Reserved.
Privacy Policy | Terms of Service.