Email: info@wpitaly.it
Risposta a Jardel.
Ciao, d’accordissimo sulla procedura, solo che ho dovuto usare un tag ‘div’ anzichè ‘p’ in quanto la funzione <?php the_content(__(‘(more…)’)); ?> stampa un tag ‘div’ che precede il contenuto dell’articolo (e che non posso annidare dentro un tag ‘p’) e un tag ‘p’ senza formattazione prima del testo della pagina.
Grazie comunque, penso che dovrò visionare tutti i file del Cmd, in quanto nessun file .css risposrta una classe mceTemp.
Francesco
Ciao e grazie per le risposte.
Immaginavo infatto che mceTemp fosse una classe contenuta in qualche file funzione, ma non riesco a trovarlo, e la funzione ‘Cerca’ di Windows non mi aiuta molto.
Il motivo per cui vorrei arrivare al cuore della questione è il desiderio di tenere pulito il codice: per attribuire lo stile al contenuto degli articoli e delle pagine non riesco a far meglio che far precedere il tag ‘div class=messaggio’ alla chiamata <?php the_content(__(‘(more…)’)); ?>, ma questo comporta
– un buon risultato nel testo degli articoli, che risulta però preceduto da un tag ‘p’ non inserito da me, e l’ideale sarebbe evitare un nuovo ‘div’ e applicare la classe direttamente al tag ‘p’;
– due div annidati (class=’messaggio’ e class=”mceTemp”) nelle pagine.
Se invece potessi accedere al tag ‘p’ scritto dalla funzione <?php the_content(__(‘(more…)’)); ?> prima del testo dell’articolo per attribuirgli la class ‘messaggio’ eviterei un ‘div’, poi inserirei nel foglio di stile una classe ‘mceTemp’ con le stesse attribuzioni della classe ‘messaggio’ e il problema sarebbe risolto.
Dove posso andare a guardare?
Saluti
Francesco
(blog acessibile sviluppato con Notepad)
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0