Adding style to ul li ul using AutoNav
Permalink
I am trying to use the AutoNav block to create my navigation, as usual it all works well. But this time I am wanting to add some styles to the nested ul.
Do I need to create a template for this? If so has anyone already done this or something similar?
Any help would be greatly appreciated.
<ul id="nav"> <li class="current_page_item"><a href="#">Home</a></li> <li><a href="#">Portfolio</a> <ul style="visibility: hidden; display: block;"> <li><a href="#">Digital Design</a></li> <li><a href="#">Print Design</a></li> </ul> </li> <li><a href="#">About</a> <li><a href="#">Contact</a></li> <li><a href="#">Blog</a></li> </ul>
Do I need to create a template for this? If so has anyone already done this or something similar?
Any help would be greatly appreciated.
If you just want to give different levels different styles use css in your theme:
Be aware that the styles are inherited...
But you can also use a custom template. Put it under /blocks/autonav/yourtemplate.php. I did already this or something similar ;-)
btw. why do you want to make your navigation items hidden?