I've been searching high and low for the past couple of days for the file(s) in Orchard where I can customize the markup used for the navigation
Traversing the tree in the Designer Tool and looking at the template and HTML views doesn't help much seeing as the MenuItemLink
renders the <li>
in the HTML view but nothing renders it in the template view. So I am quite stumped.
The original markup is like so (Taken from the Designer Tools Zone [Navigation]
):
<div class="zone zone-navigation">
<article class="widget-navigation widget-menu-widget widget">
<nav>
<ul class="menu menu-main-menu">
<li class="first">
<a href="/Orchard/work">Work</a>
</li>
</ul>
</nav>
</article>
</div>
What I need is to customize the classes on the <ul>
and <li>
elements, really.
If possible I'd love to be able to customize it all so I didn't need the <div class="zone zone-navigation">
for example.
But is this even possible?
<li>
element, although they are very informative :) – Churchwell<li>
s are rendered. Just under theMenu.cshtml
there is aMenuItem.cshtml
that you could modify. – Poultry