Visualizzazione 3 filoni di risposte
Visualizzazione 3 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › Errore nell’anteprima dei Temi
Sto creando un nuovo tema e sono a buon punto con la scrittura del css.
Nella guida su Wiki c’è scritto che è buona norma inerire all’inizio del file style.css i dettagli dello stile inserendo tutto tra /* e */ stile commento.
Cosଠho fatto, definendo il nome e le altre cose.
Il problema è che se guardo nella pagina di scelta dei temi di WP vicino al mio tema, o anche al suo posto trovo tutto il testo del css.
Non è la prima volta che mi capita.
Vorrei sapere se qualcuno ha avuto questo problema e se può darmi la soluzione.
Grazie
Adesso mi dà un altro errore…
Lo vede come un tema corrotto e dice “Template Mancante”.
Girando un po’ sembra che prenda come nome del tema tutto il CSS
forse sbagli qualcosa nell’intestazione del file style.css
, prova a copiartela da un CSS di un altro tema funzionante
Ho risolto…
il problema era dovuto alla diversa codifica tra sistemi operativi del carattere “a capo”:
In pratica io editavo il file con un programma su MacOs e se aprivo il file css con notepad lo vedevo su unica riga con un quadratino al posto di ogni “a capo”
E’ bastato rieditare la parte iniziale con netepad e tutto ha ripreso a funzionare.
Avevo provato a modificarla direttamente da wordpress, ma forse il formato non era corretto.
Grazie
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0