Home › Forum › WP e Accessibilità › Codice accessibile
-
AutorePost
-
-
7 Ottobre 2009 alle 11:43 #11789dalzianiPartecipante
Ciao, sto studiando come rendere accessibile il tema ‘Classic’, mancano alcuni dettagli: il contenuto della pagina (inserito da pannello di amministrazione) non riporta i tag <p> e non riesco ad aggiungerli modificando la stringa <?php the_content(__(‘(more…)’)); ?> in index.php del tema.
Mentre compaiono nel testo degli articoli.
Inoltre non trovo l’origine di alcune classi attribuiti ad alcuni seletori DIV (come mceTemp), dove devo andare a guardare?
Grazie, Francesco
-
7 Ottobre 2009 alle 12:31 #68697SteveAglAmministratore del forum
mcetemp non è certo una classe usata nel tema ma usata dall’editor… per il resto non ho capito assolutamente nulal sui paragrafi…
-
7 Ottobre 2009 alle 14:48 #68700jardelPartecipante
se ho capito bene fai prima a inserire il paragrafo nel tema prima della chiamata al contenuto e chiuderlo subito dopo… dorse un modo c’è ma cosi senz’altro fai prima.
-
9 Ottobre 2009 alle 11:10 #68730dalzianiPartecipante
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)
-
9 Ottobre 2009 alle 11:26 #68731dalzianiPartecipante
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
-
24 Ottobre 2009 alle 16:04 #69002dalzianiPartecipante
Ciao,
Risolto anche questo.
Ho strutturato la sequenza dei commenti come lista non ordinata e ho proceduto cosଠnel file comments.php del tema: dopo la stringa
<?php if ( have_comments() ) : ?>
– ho fatto precedere <li class=”unopuntouno”> a <?php comment_text() ?>
– <p class=”commenti”> al blocco <?php comment_type(_x(‘Comment’, ‘noun’), __(‘Trackback’), __(‘Pingback’)); ?> <?php _e(‘by’); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <?php comment_time() ?><?php edit_comment_link(__(“Edit This”), ‘ – ‘); ?>
– chiusi i tag p e li
e il risultato è pulito e accessibile.
Salutone
Francesco
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.