Home › Forum › Problemi Vari con WP › Problema .current_page_parent
-
AutorePost
-
-
4 Dicembre 2011 alle 21:22 #19951galbu89Partecipante
Buonasera a tutti,
ho questo sito che sto realizzando è ed in fase test su http://www.ddcristalli.it/rondanini
Quello che non riesco a fare è il seguente:
cliccando su ‘Collaboratori'(menu di primo livello) si accede alla pagina dove sulla sinistra ci sono elencati i nomi degli avvocati, suddivisi in giuristi, professionisti esperti, professionisti esperti tecnici.
Come si può vedere, in questa occasione, nel menu principale la voce ‘Collaboratori’ è evidenziata in rosso.
Poi, cliccando su un qualsiasi nome degli avvocati elencati, si apre la pagina-profilo dell’avvocato selezionato ma ‘Collaboratori’ non è più evidenziato.
Pensavo di risolvere il tutto con i CSS e l’utilizzo di .current_page_parent ma a quanto pare no…
come avrete capito, con il php non sono un esperto…
Se, per darmi utili consigli, vi servono parti di codice utilizzati o altro, chiedete pure.
Grazie mille!
-
5 Dicembre 2011 alle 7:43 #90369TittiModeratore
Provato a fare di quelle pagine dei collaboratori delle sotto-pagine? In questo modo la pagina corrente della pagina principale dovrebbe rimanere evidenziata.
-
5 Dicembre 2011 alle 9:09 #90375galbu89Partecipante
Si. Per ogni pagina, ho messo come genitore la pagina collaboratori
-
5 Dicembre 2011 alle 10:02 #90376SteveAglAmministratore del forum
la classe assegnata ad un elemento di un menu che è padre dell’elemento corrente .current-page-ancestor e non .current_page_parent come puoi facilmente verificare analizzando il codice della pagina di un avvocato e vedendo le classi assegnate al menu
-
5 Dicembre 2011 alle 10:04 #90377SteveAglAmministratore del forum
qui un po’ di info:
http://digwp.com/2010/05/default-wordpress-css-styles-hooks/
-
7 Dicembre 2011 alle 14:38 #90444galbu89Partecipante
non riesco a capire il funzioanmento di current_page_ancestor.
La classe non dovrebbe essere:
.current_page_ancestor .sf-menu > li.current-menu-item > a ??
-
7 Dicembre 2011 alle 15:52 #90445SteveAglAmministratore del forum
.current_page_ancestor è una classe… la ha solo l’elemento “parente” della pagina coorrente… ergo stilizzando quella classe dovresti risolvere…
PS Usare firebug su Firefox è strumento fondamentale per fare test vari e capire le strutture…
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.