Ciao, per un precedente tema avevo usato questa “grammatica” (suggeritami qui sul forum) per associare a una determinata pagina un foglio stile e un’immagine della testata diverse dal resto del sito:
<?php
if (is_page(‘nome-della-pagina’)) {
echo”<link rel=”stylesheet” type=”text/css” href=”path_del_tema/special_style.css” />”;
} else {
echo”<link rel=”stylesheet” type=”text/css” href=”path_del_tema/style.css” />”;
}
?>
e la cosa ha funzionato. Il tema è poi risultato infetto, per cui l’ho cambiato, ma ora l’indicazione per l’immagine della testata non è nel foglio stile, come nel vecchio tema, ma nell’header stesso:
<div id=”masthead_image”>
/images/masthead.png” alt=”Flower” />
</div>
Posso usare la stessa sintassi anche qui? mi sembran due cose diverse… non sono molto ferrata, come si costruisce, per dirgli: “se la pagina è “tale”, metti quest’immagine, altrimenti metti quest’altra”?
Grazie per l’aiuto.