Απεριόριστα $1.99 ονόματα περιοχών - χρησιμοποιούμε goDaddy
Τροφοδοτημένος από MaxBlogPress

Αμυχή Wordpress #4: Δημιουργήστε ένα λάθος 404 συνήθειας σελίδα | Λάθη Blogging JTPRATT
Λάθη Blogging JTPratt


Σπίτι » Wordpress αμυχή #4: Δημιουργήστε ένα λάθος 404 συνήθειας σελίδα



Ταχυδρομημένος σε:

εικόνα κατηγορίας blog-οργάνωσης blogging εικόνα κατηγορίας wordpress εικόνα κατηγορίας
905 απόψεις


Παρακαλώ σημειώστε: Αυτή η σελίδα γράφτηκε αρχικά στα αγγλικά.

Η αρχική θέση μπορεί να αντιμετωπισθεί εδώ.

Please note: This page was originally written in English.

The text has been translated using an online service such as Google or Babelfish.

The original post can be viewed here.


Σε αυτήν την «αμυχή Wordpress» θα μάθετε πώς να δημιουργήσετε μια συνήθεια 404 σελίδα λάθους για το blog σας. Είναι βοήθειες οι επισκέπτες που σας βρίσκουν τι χρειάζονται, και σας βοηθούν επίσης να μην χάσετε τους επισκέπτες!

Το Wordpress «αμυχή-α-Thon» συνεχίζεται στο μας «30 αμυχές Wordpress στη σειρά 30 ημερών» για να σας βοηθήσει να πάρετε τον έλεγχο του blog σας!

Μια σελίδα που πιθανώς δεν εξετάζετε πολύ συχνά (αν ποτέ) είστε η σελίδα 404 λάθους σας. Τι είναι ένα λάθος 404; Είναι πότε κάποιος προσπαθεί να επισκεφτεί κάτι στον ιστοχώρο σας και δεν είναι εκεί - οι επιδείξεις webserver μια σελίδα λάθους. Κανονικά η σελίδα είναι άσπρη με το σαφές μαύρο κείμενο με ένα σύντομο μήνυμα για «τη σελίδα που ψάχνετε δεν μπορείτε να βρεθείτε». Το Wordpress επιδεικνύει μια συνήθεια 404 σελίδα βασισμένη στο αρχείο «404.php» προτύπων που περιλαμβάνεται μέσα στον κατάλογο θέματός σας, αλλά εξ ορισμού τα περισσότερα θέματα δεν έχουν πολύ περισσότερο από «το λάθος 404 που δεν βρίσκεται».

Αυτήν την περίοδο η σελίδα 404 λάθους μου είναι αρκετά άχρηστη παρουσιάζοντας ακριβώς έναν τίτλο «λάθος 404 που δεν βρίσκεται» και άσπρη κενή οθόνη μέσα στο πρότυπο wordpress μου. Πρόκειται να καθορίσω ότι δεδομένου ότι γράφω αυτήν την αμυχή για σας. Αυτό που προκαλεί αυτά τα 404 λάθη; Συμβαίνει μόνο 2 τρόποι, είτε κάποιος δακτυλογραφεί είτε κόλλες σε μια κακή διεύθυνση στον τομέα URL της μηχανής αναζήτησης, ή κάποιος χτυπά σε μια κακή σύνδεση (στην περιοχή σας ή από μια άλλη περιοχή). Όταν Wordpess δεν μπορεί να βρεί τη σελίδα ή να ικανοποιήσει επιδεικνύει μια σελίδα χρησιμοποιώντας το λάθος 404.php. Αυτό θα ήταν ένας καλός χρόνος να αναφερθεί 404 δηλώνων Wordpress Plugin αυτός θα σας στείλει μήνυμα με το ηλεκτρονικό ταχυδρομείο κάθε φορά που παίρνει κάποιος ένα λάθος 404 στην περιοχή σας. Είναι ένας σημαντικός μετρητής εάν οι άνθρωποι έχουν τα ζητήματα με το περιεχόμενό σας () ή όχι.

Μια καλή θέση για να αρχίσει θα ήταν Σελίδα κωδίκων Wordpress στη δημιουργία ενός λάθους 404 σελίδα . The first thing it says is that you want to remove the ugly error and replace it with something that will help visitors find their way. I couldn’t have said it better myself.

It also says that you are looking for the following text, and should modify the H2 header and add some paragraphs of text below it:

<div id="content">

<h2 class="center">Error 404 - Not Found</h2>

</div>

There isn’t a lot of “codey hocus pocus” going on there, you just want to give users a friend message, some text to humor and help them, and then it’s up to your where you want to direct them next. Some of you may want to list your most popular posts, or maybe certain categories or pages, but in my case I want to link to only a few of those. Then I’m going to enlist the help of the Ask Apache Google 404 Wordpress Plugin. It’s going to try and figure out (based on the URL) what it was they were trying to find, and display google results (for your site) to the user to try and help. I personally would prefer this plugin to search my blog only for results, but since this is the only plugin I could find that does this - google results will have to do. Check out how pimped out my 404 page looks now!

404 google example

As you can see in the image above (or the link to view it directly) - we’ve come a long way baby! No more bland error page, now we get an email every time a 404 not found error is generated, and the users get a friendly message with automatic google results to try and find what they were looking for! Like I initially said - this hack helps our visitors, and helps us “keep” our visitors on the site all at the same time!

Here are some other good 404 examples to look at for inspiration:

Problogger’s 404 Page
Smashing Magazine’s Error Pages Reloaded
Web Professor’s 404
Home Star Runner

As always - if you have questions or something to add to make this hack even better, please comment now! Stay tuned for tomorrow’s Wordpress hack so we can keep pimpin’ out our blogs!


Tags: , , , , ,

4 Responses to “Wordpress Hack #4: Create A Custom Error 404 Page”

  1. Thaya Kareeson Has the following to say...

    Glad I stumbled onto this post. I never paid enough attention to my 404 page, but I also never realized that there is a great plugin like Ask Apache Google 404 out there. Thanks!

    Thaya Kareesons last blog post..Make WP-PostViews Work with WP-Super-Cache

  2. Acupuncture Has the following to say...

    Hey JT,
    Well, I thought about this for a second and figured, why not put my sitemap as the error page?

    So I followed your lead with the content to let the visitor know that the page is not there….then I used dagon design’s sitemap generator–I know you aren’t a fan of it, but it is easy for a noob like me to use =)]

    Anyways, just pasted the code suggested for the plugin to work on in a page, very easy. Now my 404 page is a sitemap.

    That works for me.

    Thanks for getting my two neurons moving =

    Charles

    Acupunctures last blog post..What are True Acupuncture points?

  3. admin Has the following to say...

    Sure, there’s no reason why you can’t use the sitemap generator as the content for your error page. You could use archives, or anything for that matter - it’s all personal preference. And, ‘anything’ is better than the Wordpress default (nothing)!

  4. Acupuncture Has the following to say...

    Agreed! You’ve opened my eyes to the wonders of manipulating themes for added content and usefulness!!!!!

    It’s greatly appreciated!!!

Question or Comment?? Spill it Now...

Jumping for Joy over comments!

We Reward Comments!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! We would like to reward you for becoming part of our community! Your comment is valuable not only to us, but also all the other readers of this blog!

 


Click to add smilies to your post! = =[] ^=( =(( =(| =)r =|8 =0 =)~ =00 =( =;; =)] =;;;