Home › Forum › Amministrazione WP › Errore nella personalizzazione della pagina 404
-
AutorePost
-
-
2 Luglio 2008 alle 17:08 #7160sergejpinkaPartecipante
Salve,
sto tentando di personbalizzare la pagina 404, e l’ho modificata in:
<div class="post" id="post-<?php the_ID(); ?>">
<div class="posttitle">
<h2><?php _e('Ooops...Where did you get such a link ?','ml');?></h2>
<p class="post-info"><?php _e('Server cannot locate what you are looking for !','ml');?></p>
</div>
<div class="entry">
<p><?php _e('The Server tried all of its options before returning this page to you.','ml');?></p>
<p>/img/404.gif" alt="404" class="left" /><?php _e('You are looking for something that is not here now.','ml');?><br/>
<!--<?php _e('You can always try doing a search or browsing through the Archives.','ml');?><br/><?php _e('Don't loose your hope just yet.','ml');?><br style="clear:both" /></p>-->
<?php _e('Prova a vedere se c'è qualcosa d'altro che può interessarti nel mio Archivio.','ml');?><br/><?php _e('Don't loose your hope just yet.','ml');?><br style="clear:both" /></p>
</div>
<p class="postmetadata"><?php _e('Posted as Not Found','ml');?></p>
</div>
però ricevo il messaggio:
Parse error: syntax error, unexpected T_STRING in /home/mhd-01/www.sergejpinka.it/htdocs/wp-content/themes/mistylook/notfound.php on line 10
dov'è che sto sbagliando?
Grazie dell'aiuto.
-
2 Luglio 2008 alle 17:23 #55443wollyAmministratore del forum
controlla gli apici probabilmente qualcuno è sbagliato.
-
2 Luglio 2008 alle 17:30 #55445Walter22Partecipante
Secondo quanto detto dall’ errore (non ne sono sicuro) l’ errore sta in questa stringa:
<!--<?php _e('You can always try doing a search or browsing through the Archives.','ml');?><br/><?php _e('Don't loose your hope just yet.','ml');?><br style="clear:both" /></p>-->
-
2 Luglio 2008 alle 17:38 #55446SteveAglAmministratore del forum
quale è la riga 10? visto che oltre al codice postatoci sarà altra roba prima tipo il richiamo header etc etc… posta la riga 10 con la riga precedente e successiva.
-
2 Luglio 2008 alle 17:46 #55447sergejpinkaPartecipante
la riga 10 dovrebbe essere:
<?php _e('Prova a vedere se c'è qualcosa d'altro che può interessarti nel mio Archivio.','ml');?><br/><?php _e('Don't loose your hope just yet.','ml');?><br style="clear:both" /></p>
-
2 Luglio 2008 alle 18:57 #55464SteveAglAmministratore del forum
mancano gli’escape degli apici. Es di c’è (se c’è qualcosa)
c’è qualcosa d’altro
cosଠdovrebbe andare.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.