Navigation
Permalink
Hello!
I'm creating a new theme where i want the autonav to create navigation like this
<ul class="nav">
<li class="lvl1"><a href="/">Forside</a></li>
</ul>
<ul class="nav">
<li class="lvl1 active">
<a class="active" href="#">Rootelement</a>
<ul class="lvl2">
<li class="lvl2">
<a href="#">Level 2 element</a>
</li>
<li class="lvl2">
<a href="#">Level 2 element</a>
</li>
</ul>
</li>
</ul>
<ul class="nav">
<li class="lvl1">
<a href="#">Root element</a>
</li>
</ul>
<ul class="nav">
<li class="lvl1">
<a href="#">Borgerservice</a>
</li>
</ul>
where it creates a new <ul class="nav"> for every root element and marks children as above
Is this possible and how?
best regards
I'm creating a new theme where i want the autonav to create navigation like this
<ul class="nav">
<li class="lvl1"><a href="/">Forside</a></li>
</ul>
<ul class="nav">
<li class="lvl1 active">
<a class="active" href="#">Rootelement</a>
<ul class="lvl2">
<li class="lvl2">
<a href="#">Level 2 element</a>
</li>
<li class="lvl2">
<a href="#">Level 2 element</a>
</li>
</ul>
</li>
</ul>
<ul class="nav">
<li class="lvl1">
<a href="#">Root element</a>
</li>
</ul>
<ul class="nav">
<li class="lvl1">
<a href="#">Borgerservice</a>
</li>
</ul>
where it creates a new <ul class="nav"> for every root element and marks children as above
Is this possible and how?
best regards