Ciao a tutta la comunità,
Vi sottopongo il mio problema, sto utilizzando il subtheme zen per fare qualcosa di personalizzato e vorrei inserire un main menu personalizzato.
Questo il codice del menu;
/**
* @file
Style main-menu
*/
#main-menu {
padding: 0;
width: 100%;
border-top: 5px solid #D25A0B; /*Brown color theme*/
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
}
#main-menu ul{
margin:0;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}
#main-menu li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform:uppercase;
}
#main-menu a{
float: left;
display: block;
font: bold 11px Arial;
color: white;
text-decoration: none;
margin: 0 1px 0 0; /*Margin between each menu item*/
padding: 5px 10px;
background-color: black; /*Brown color theme*/
border-top: 1px solid white;
}
#main-menu a:hover{
background-color: #D25A0B; /*Brown color theme*/
color: white;
}
#main-menu #current a{ /*currently selected tab*/
background-color: #D25A0B; /*Brown color theme*/
color: white;
border-color: #D25A0B; /*Brown color theme*/
}
che ho aggiunto come css
Ora il problema è nell' ID #current perchè ovviamente non è presente nell' array php
Come faccio per inserire il nuovo id nell'array ?
Suppongo di modificare page.tpl.php .... però non ho molta dimestichezza con php :(
ciaooo e grazie
Puoi provare http://www.drupalitalia.org/node/17465
----------------------------------------
bI’Iqchugh’ yIvang !
Se sei triste, agisci!
Proverbio Klingon
in drupal la voce di menu attiva ha classe
.active
e/o.active-trail
, l'elemento<li>
corrispondente ha classe.active-trail
Certified to Rock