Free Checking for Bloggers - Sign up in 5 Minutes! Libre Comprobación de Bloggers - Inscríbase en 5 minutos!
Powered by MaxBlogPress Powered by MaxBlogPress

Hack Wordpress # 4: crear una página de error 404 | JTPRATT errores del Blogging
JTPratt errores de los blogs





Home Inicio » Wordpress Hack #4: Create A Custom Error 404 Page »Hack Wordpress # 4: crear una página de error 404



Posted in: Publicado en:

blog-configuración de la categoría de imagenla categoría de blogs imagenwordpress categoría imagen
1,481 views 1.481 visitas


Please note: This page was originally written in English. Por favor nota: Esta página fue originalmente escrito en Inglés.

The original post can be viewed El post original se puede ver here aquí .

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.


In this “Wordpress Hack” you’ll learn how to create a custom 404 Error page for your blog. En este "Hack Wordpress" usted aprenderá cómo crear una página de error 404 para su blog. It’s helps your visitors find what they need, and also helps you not lose visitors! Es ayuda a sus visitantes a encontrar lo que necesitan, y también le ayuda a no perder visitantes!

The Wordpress “Hack-A-Thon” continues in our “ El Wordpress "Hack-A-Thon" continúa en nuestra " 30 Wordpress Hacks in 30 Days Series 30 Wordpress Hacks en la serie 30 Días ” to help you get control of your blog! "Para ayudarle a obtener el control de tu blog!

One page you probably don’t look at very often (if ever) is your 404 Error page. Una página que probablemente no miran muy a menudo (o nunca) es su página de error 404. What is a 404 error? ¿Qué es un error 404? It’s when someone tries to visit something on your web site and it isn’t there - the webserver displays an error page. Es cuando alguien intenta visitar algo en su sitio web y no es allí - el servidor web muestra una página de error. Normally the page is white with plain black text with a short message about “the page you’re looking for cannot be found”. Normalmente, la página es de color blanco con negro simple texto con un mensaje corto acerca de "la página que buscas no se puede encontrar". Wordpress displays a custom 404 page based on the template file “404.php” contained within your theme directory, but by default most themes don’t have much more than “Error 404 Not Found”. Wordpress muestra una página 404 personalizado basado en el archivo de plantilla "404.php", que figura dentro de su directorio tema, pero por defecto, la mayoría de los temas no tienen mucho más que "Error 404 Not Found".

Currently my 404 error page is pretty useless showing just a heading “Error 404 Not found” and a white blank screen inside my wordpress template. Actualmente mi página de error 404 es bastante inútil mostrando sólo un título de "Error 404 no encontrado" y una blanca pantalla en blanco dentro de mi plantilla wordpress. I’m going to fix that as I write this hack for you. Me voy a fijar que, como yo escribo este hack para usted. What causes these 404 errors? ¿Qué causa estos errores 404? It only happens 2 ways, either somebody types or pastes in a bad address in the URL field of the browser, or somebody clicks on a bad link (on your site or from another site). Sólo sucede 2 maneras, o bien alguien tipos de pastas o en una mala dirección en el campo URL del navegador, o alguien hace clic en un vínculo malo (en su sitio o desde otro sitio). When Wordpess can’t find the page or content it displays a page using the 404.php error. Cuando Wordpess no puede encontrar la página o el contenido que muestra una página con el error 404.php. This would be a good time to mention the Este sería un buen momento para hablar de la 404 Notifier Wordpress Plugin 404 notificador Wordpress Plugin that will email you every time someone gets a 404 error on your site. dirección de correo electrónico que usted cada vez que alguien recibe un error 404 en su sitio. It’s an important gauge of whether people are having issues with your content (being found) or not. Es un importante indicador de si las personas están teniendo problemas con su contenido (se encuentra) o no.

A good place to start would be the Un buen lugar para empezar sería el Wordpress Codex page on Creating an Error 404 Page Wordpress Codex en la página Crear una página de error 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. Lo primero que dice es que quiere quitar el feo error y reemplazarlo con algo que ayudará a los visitantes encontrar su camino. I couldn’t have said it better myself. Yo no podría haber dicho mejor que yo.

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: También dice que usted está buscando el siguiente texto, y debe modificar el encabezado H2 y añadir algunos párrafos del texto que figura a continuación es el siguiente:

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

There isn’ta 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. No hay mucho de "Codey Hocus Pocus" pasando allí, lo que quiere ofrecer a los usuarios un mensaje de amigo, algún texto de humor y ayudarlos, y luego le toca a tu en la que desea dirigir a otro. 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. Algunos de ustedes pueden desear su lista de los puestos más populares, o tal vez a determinadas categorías o páginas, pero en mi caso quiero enlazar con sólo unos pocos de ellos. Then I’m going to enlist the help of the A continuación, voy a recabar la ayuda de la Ask Apache Google 404 Wordpress Plugin Pregúntele a Google 404 Apache 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. Va a tratar de averiguar (basado en la URL) lo que era que estaban tratando de encontrar, y mostrar los resultados de Google (para su sitio web) para el usuario para tratar de ayudar. 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. Yo personalmente preferiría que este plugin de búsqueda a mi blog sólo por los resultados, pero ya que este es el único plugin que pude encontrar que hace esto - los resultados de Google se tiene que hacer. Check out Salida how pimped out my 404 page looks now cómo Pimped mi página 404 se ve ahora !

404 google ejemplo

As you can see in the image above (or the link to view it directly) - we’ve come a long way baby! Como se puede ver en la imagen de arriba (o el enlace para ver directamente) - hemos recorrido un largo camino nena! 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! No más suaves página de error, ahora tenemos un mensaje de correo electrónico cada vez que un 404 Not Found error se genera, y los usuarios obtener un mensaje de amistad con el automático de resultados de Google para tratar de encontrar lo que estabas buscando! Like I initially said - this hack helps our visitors, and helps us “keep” our visitors on the site all at the same time! Como he dicho inicialmente - este hack ayuda a nuestros visitantes, y nos ayuda a "mantener" a nuestros visitantes en el sitio todos al mismo tiempo!

Here are some other good 404 examples to look at for inspiration: Estos son algunos de los 404 ejemplos de buenas a mirar de inspiración:

Problogger’s 404 Page Problogger la página 404
Smashing Magazine’s Error Pages Reloaded Smashing Magazine páginas de error Reloaded
Web Professor’s 404 Web del Profesor 404
Home Star Runner Inicio estrellas Runner

As always - if you have questions or something to add to make this hack even better, please comment now! Como siempre - si usted tiene preguntas o algo que añadir a hacer este truco aún mejor, por favor, comentario ahora! Stay tuned for tomorrow’s Wordpress hack so we can keep pimpin’ out our blogs! Estén atentos para Wordpress mañana del hack para que podamos mantener pimpin 'nuestros blogs!


Tags: Etiquetas: , , , , ,

5 Responses to “Wordpress Hack #4: Create A Custom Error 404 Page” 5 respuestas a "Hack Wordpress # 4: crear una página de error 404"

  1. Thaya Kareeson Thaya Kareeson Has the following to say... Tiene las siguientes decir ...

    Glad I stumbled onto this post. Me alegra me tropecé en este puesto. 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. Nunca he pagado suficiente atención a mi página 404, pero también me di cuenta de que nunca hay un gran plug-in como Apache Venta Google 404 por ahí. Thanks! Gracias!

    Thaya Kareesons last blog post.. Thaya Kareesons último blog .. Make WP-PostViews Work with WP-Super-Cache Hacer WP-Trabajar con PostViews WP-Super-Cache

  2. Acupuncture Acupuntura Has the following to say... Tiene las siguientes decir ...

    Hey JT, Hey JT,
    Well, I thought about this for a second and figured, why not put my sitemap as the error page? Bueno, he pensado acerca de esto por un segundo y figurado, ¿por qué no poner mi mapa de la web como la página de error?

    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’ta fan of it, but it is easy for a noob like me to use Por lo tanto, he seguido su cabeza con el contenido para que el visitante sepa que la página no está ahí .... Entonces he utilizado DAGON diseño del mapa del sitio generador-Sé que no son fan de ella, pero es fácil para un noob como yo a utilizar =)]

    Anyways, just pasted the code suggested for the plugin to work on in a page, very easy. En cualquier caso, basta con pegar el código sugerido para el plugin para trabajar en una página, muy fácil. Now my 404 page is a sitemap. Ahora, mi 404 es una página del sitio.

    That works for me. Que trabaja para mí.

    Thanks for getting my two neurons moving Gracias por conseguir mis dos neuronas en movimiento =

    Charles

    Acupunctures last blog post.. Acupunctures último blog .. What are True Acupuncture points? ¿Cuáles son los puntos de acupuntura Es cierto?

  3. admin admin Has the following to say... Tiene las siguientes decir ...

    Sure, there’s no reason why you can’t use the sitemap generator as the content for your error page. Claro, no hay razón por la cual no se puede utilizar el Generador Sitemap como el contenido de su página de error. You could use archives, or anything for that matter - it’s all personal preference. Puede utilizar los archivos, ni nada de ese asunto - es todo preferencia personal. And, ‘anything’ is better than the Wordpress default (nothing)! Y, 'nada' es mejor que el Wordpress por defecto (nada)!

  4. Acupuncture Acupuntura Has the following to say... Tiene las siguientes decir ...

    Agreed! ¡De acuerdo! You’ve opened my eyes to the wonders of manipulating themes for added content and usefulness!!!!! Usted ha abierto los ojos a las maravillas de la manipulación de los temas de contenido añadido y utilidad !!!!!

    It’s greatly appreciated!!! Es muy apreciado!

  5. Chris at prepaid cell phones Chris en teléfonos celulares de prepago Has the following to say... Tiene las siguientes decir ...

    I’ve been trying to figure out how to do this–well, in honesty, I haven’t tried, i’ve only been thinking about it. He estado tratando de averiguar cómo hacer esto-así, en la honestidad, no he intentado, sólo he estado pensando en ello. Thankfully I stumbled on this post. Afortunadamente me tropecé en este puesto. I think the real problem for me is that I have too many of these pages that pop up. Creo que el verdadero problema para mí es que tengo demasiadas de estas páginas que pop-up. There’s probably a deeper problem. No hay probablemente un problema más profundo. Thanks for another informative post. Gracias por otro post informativo.

    Chris at prepaid cell phoness last blog post.. Chris celular en prepago phoness último blog .. Verizon Prepaid Cell Phones Review Verizon teléfonos celulares de prepago de revisión

Question or Comment?? Pregunta o comentario? Spill it Now... Derrame Ahora ...

Saltos de alegría en los comentarios!

We Reward Comments! Nos recompensa comentarios!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Estamos dofollow enlaces, y obtener su última entrada en el blog como un byline el marco de cada nuevo comentario de la "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! Comienzo de la página comentaristas para cada mes se muestran en cada página de este sitio web en un widget lateral vinculado de nuevo a su URL! We would like to reward you for becoming part of our community! Nos gustaría recompensar a usted para ser parte de nuestra comunidad! Your comment is valuable not only to us, but also all the other readers of this blog! Su comentario es valioso no sólo para nosotros, sino también todos los demás lectores de este blog!


Click to add smilies to your post! Haz clic para añadir emoticones a su puesto! == []^ = (= ((= (|=) r= | 8= 0=) ~= 00= (=;;=)]=;;;