We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Recursive Nav Question

Someone October 11, 2014 by Someone

Hi all,

Say i have

    {{ nav max_depth="2" from="/" folders_only="false" }}
    <li class="nav-link{{ if children }} more{{ endif }}">
      <a href="{{ url }}">{{ title|smartypants|widont }}</a>
      {{ if children }}
      <ul class="submenu">
        {{ *recursive children* }}
      {{ endif }}
    {{ /nav }}

The recursive children li items inherit the parent ul li class "nav-link"

How do i prevent this from happening?


Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
2 Replies
1 Follower