Home › Forum › Problemi Vari con WP › Personalizzare tag CODE
-
AutorePost
-
-
8 Luglio 2008 alle 15:03 #7213ricmanPartecipante
WordPress versione 2.5.1. su server Linux tutto perfettamente funzionante. Prove fatte sul tema di default azzurro.
Vorrei inserire degli articoli in cui mostro del CODICE. Se, al momento dell’inserimento, nella textarea dove scrivo l’articolo clicco sulla visualizzazione dell’Html mi comapaiono dei “nuovi” pulsantini, tra cui quello chiamato “CODE”.
Mi sembra il più indicato.
Lo uso…
Nel sito vedo il testo-codice che compare tra i tag
con una variazione del font in curier-new.
A questo punto vorrei personalizzarlo un po'... Nel Design vado nello stile principale (stile.css) e trovo "code {.....}". Dove fra l'altro c'è anche dichiarato il courier.
Allora aggiungo un margin-left di 30px, un backgroun-color e un bordino di 2px. Salvo.
NIENTE... il sito non cambia!!
Come posso risolvere?
-
8 Luglio 2008 alle 15:51 #55624ArturoPartecipante
sei sicuro che il code nel css sia quello che va a stamparti l’ambaradan su WP? il courier non e’ una prova molto valida in quanto puo’ essere un font molto utilizzato nel theme.
assicurati che siano le stesse classi e assicurati che la stessa classe non sia richiamata in un altro css, in quanto si possono splittare le varie classi in piu’ css, ecc ecc…
-
9 Luglio 2008 alle 16:50 #55659ricmanPartecipante
sei sicuro che il code nel css sia quello che va a stamparti l’ambaradan su WP?
…era quello… ho avuto problemi con la cache… nonostante refreshassi la pagina non succedeva nulla… quando gli è parso ha cominciato a funzionare da sè sennza che io facessi altre modifiche..
Grazie per l’aiuto, ciao
-
25 Giugno 2010 alle 9:16 #74540deerPartecipante
Riapro questo post, perchè è piu o meno quello che cercavo.
Non riesco a far apparire i code all’interno di una “finestra”, come nel post precedente.
uso il pulsante code in html, ma nel post viene visualizzato normale.
Se ho capito bene occorre agire nel tema nello style.css, ho cercato ma non ho trovato nulla riguardo la voce code.
Esiste un altro sistema?
Grazie.`
-
25 Giugno 2010 alle 9:41 #74543SteveAglAmministratore del forum
No occore stilizzare il code usando i CSS san google dovrebbe darti molte info.. poi ci sono lugin per mostrare codice con numeri di riga evidenziazione sintassi etc etc
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.