WordPress, il tema Coffee Desk ed il pulsante “post my comment”

Ho scoperto che c’era un errore nella form per l’invio di un commento. Veniva chiamata una immagine “submit.PNG” che non è presente nel pacchetto del tema. Il risultato era abbastanza brutto.

Il problema è nel file comments.php, precisamente nelle righe di codice:

<p><input name="" type="image" value="Submit" src="<?php bloginfo('stylesheet_directory'); ?>/images/submit.PNG" alt="post my comment" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>

Spulciando in rete ho trovato la soluzione nel forum francese di wordpress http://www.wordpress-fr.net/support/viewtopic.php?pid=96460 dove mostravano come modificare queste righe. In pratica si delega al css la visualizzazione corretta del pulsante:

<p><input type="submit" name="" value="Invia il commento!" id="boutton_submit"/><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>

Adesso è decisamente più carino.

p.s. Ecco una immagine del prima e del dopo:

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>