WordPress - Migliora la tua 404 risposte File Not Found (3 di 4)
Nei nostri post precedenti di questa collezione abbiamo mostrato come fornire ai vostri spettatori con uno strumento di lasciarli stare nel tuo sito web WordPress quando ottengono un 404 Impossibile trovare il file di errore attraverso un form di ricerca e una mappa del sito. In questo post ci accingiamo a compiere un nuovo passo in avanti, ci darà loro un altro strumento, Smart 404 , per dare loro più possibilità ...
|
Si applica a:
WordPress 2.8 |
Queste personalizzazioni sono forniti "COME SONO" senza alcuna garanzia di sicurezza e DiceLock declina ogni responsabilità, espressa o implicita incluse quelle di commerciabilità, NON VIOLAZIONE DI PROPRIETÀ INTELLETTUALE DI TERZI, DI IDONEITÀ PER UN PARTICOLARE SCOPO. Aggiornare o reinstallare il codice sorgente su misura (pacchetto, plugin, componenti, ...) può rimuovere le personalizzazioni effettuate. |
Nei nostri post precedenti abbiamo mostrato come aggiungere una casella di ricerca e una mappa del sito link nella vostra pagina di errore 404 File Not Found, permettendo al vostro spettatori di ricerca cosa stanno cercando, come in:
C'è un altro strumento che migliora il sito web, questo è Smart 404 . Permette di eseguire una ricerca dei tuoi post, tag e categorie, utilizzando le parole chiave da l'URL richiesto. Se c'è una corrispondenza, reindirizzamento a questa pagina, invece di mostrare l'errore. Se c'è più di una corrispondenza, il 404 File Not Found pagina è possibile utilizzare alcuni tag modello di fornire un elenco di suggerimenti ai telespettatori.
Un modo per permettere che la tua 404 Not Found File telespettatori andare oltre il vostro sito web è quello di visualizzare un elenco di suggerimenti per i telespettatori.
Come in precedenti post, potete mettere nella vostra pagina 404 File non trovato, magari nel vostro 404.php o in index.php (che si trova sotto Atahualpa cartella) in tema Atahualpa come nell'esempio le chiamate a 404 Smart plugin. Il 404 File Pagina non trovata sarebbe in tema Atahualpa:
else : ?> <h2> <?php _e ( 'Not Found' , 'atahualpa' ) ; ?> </h2> <table width="100%"> <tr> <td colspan="2"> <br /><p> <?php _e ( "Sorry, but you are looking for something that it's not found. " , "atahualpa" ) ; ?> </p><br /> </td> </tr> <tr> <td colspan="2"> <b>Site Map</b><br /><br /> You can access the <a href="site-map/">Site Map</a> in order to view all blog content, maybe you can access the information you are looking for from there !!!<br /><br /> </td> </tr> <tr> <td colspan="2"> <?php if ( smart404_has_suggestions ( ) ) : ?> <b>Suggestions</b><br /><br /> We have found that maybe there is something related to what you are looking for at the following links, you can try them:<br /><br /> <?php smart404_suggestions ( ) ; ?> <?php endif ; ?> <?php if ( smart404_loop ( ) ) : ?> <p>or, try any of these posts:</p> <?php while ( have_posts ( ) ) : the_post ( ) ; ?> <a href=" <?php the_permalink ( ) ?> " rel="bookmark" title=" <?php the_title_attribute ( ) ; ?> "> <?php the_title ( ) ; ?> </a> <?php endwhile ; ?> <?php endif ; ?> </td> </tr> <tr> <td colspan="2"> <br /><br /><b>Site search</b><br /><br /> Or you can use our search form to find the proper information you are looking for ...<br /><br /> </td> </tr> <tr> <td width="50%"> <?php get_search_form ( ) ; ?> <br /><br /> </td> <td> </td> </tr> </table> <?php endif ; ?> <?php get_footer ( ) ; ?> <? Php / / della fine: Se ci sono dei posti / / Se non ci sono posti: else:?> <h2> <? Php _e ('Not Found', 'Atahualpa');?> </ H2> < larghezza della tabella = "100%"> <tr> <td colspan="2"> <p> <br /> <? php _e ("Spiacente, ma stai cercando qualcosa che non è trovato.", "Atahualpa" );?> </ p> <br /> </ td> </ tr> <tr> <td colspan="2"> <b> Mappa del sito </ b> <br /> <br /> Puoi accedere al <a href="site-map/"> Mappa del sito </ a> per visualizzare tutti i contenuti del blog, forse è possibile accedere alle informazioni che state cercando da lì! <br /> <br /> </ td> </ div> <td colspan="2"> <? php if (smart404_has_suggestions ()):?> <b> Suggerimenti </ b> <br /> <br /> Abbiamo trovato che forse c'è qualcosa legato a quello che stai cercando per i seguenti link, potete provare: <br /> <br /> <? smart404_suggestions php ();?> <? php endif;?> <? php se (smart404_loop ()):?> <p> o, provare uno qualsiasi di questi post: </ p> <? php while (have_posts ()): the_post ();?> <a href = "<? php the_permalink () ?> "rel =" title segnalibro "=" <? the_title_attribute php ();?> "> <? php the_title ();?> </ a> <? php endwhile;?> <? php endif;?> < / td> </ div> <td colspan="2"> <br /> <br /> <b> siti di ricerca / b> <br /> <br /> In alternativa potete utilizzare il nostro modulo di ricerca per trovare le informazioni corrette che stai cercando ... <br /> <br /> </ td> </ div> <td width="50%"> <? get_search_form php ();?> < br /> <br /> </ td> <td> </ td> </ tr> </ table> <? php endif;?> <? get_footer php ();?>
Se il codice inserito è il seguente:
( smart404_has_suggestions ( ) ) : ?> <b>Suggestions</b><br /><br /> We have found that maybe there is something related to what you are looking for at the following links, you can try them:<br /><br /> <?php smart404_suggestions ( ) ; ?> <?php endif ; ?> <?php if ( smart404_loop ( ) ) : ?> <p>or, try any of these posts:</p> <?php while ( have_posts ( ) ) : the_post ( ) ; ?> <a href=" <?php the_permalink ( ) ?> " rel="bookmark" title=" <?php the_title_attribute ( ) ; ?> "> <?php the_title ( ) ; ?> </a> <?php endwhile ; ?> <?php endif ; ?> </td> </tr> <tr> <td colspan="2"> <? php if (smart404_has_suggestions ()):?> <b> Suggerimenti </ b> <br /> <br /> Abbiamo scoperto che forse c'è qualcosa relativo a quanto si sta cercando i seguenti link, potete provare: <br /> <br /> <? smart404_suggestions php ();?> <? php endif;?> <? php if (smart404_loop ()):?> <p> o, provare uno qualsiasi di questi post: </ p> <? php while (have_posts ()): the_post ();?> <a href = "<? php the_permalink ()?>" rel = "bookmark" title = "<? the_title_attribute php ();?>"> <? php the_title ();?> </ a> <? php endwhile;?> <? php endif;?> </ td> </ tr>
Con questa modifica i tuoi visitatori potranno ottenere qualcosa di simile alla schermata seguente quando ottengono un 404 Impossibile trovare il file di errore:
Come abbiamo sottolineato nel precedente post, in questo modo, gli spettatori potranno dare il tuo davanti ai loro occhi gli strumenti che renderanno il loro soggiorno nel vostro sito.



























