Email: info@wpitaly.it
Che intendi? Ho fatto in modo che il mio tema supporti i menu nativamente, ho creato un menu e adesso riesco a visualizzarlo (dopo aver fatto molte modifiche al css)… ma le sottopagine continuano a non essere mostrate…
Forse c’è una funziona specifica…
Il problema in realtà è molto più generale: non funzionano i link relativi.
Cioè, anche se provo a linkare delle immagini con “/wp-content/themes/tema/images/immagine.png”, non mi viene visualizzato nulla.
Appunto. Usando is_page, funzionerà solo ed esclusivamente con la pagina. Se il cliente decide di cambiare l’ordine delle pagine nel menù in alto, tutto il lavoro si rovinerà .
Ho trovato la funzione “is_page” che fa al caso mio.
Tuttavia in questo modo renderei impossibile la modifica dell’ordine delle pagine senza mandare all’aria il template.
Mi potete suggerire come fare in modo che venga data una classe differente a seconda che la pagina sia la prima, la seconda e cosଠvia?
Grazie
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0