Skip to content
Discussion options

You must be logged in to vote

Hi, in v2 the script supports split links - i.e. menu items that have both a link part and a sub menu toggler button part - for example:

<li class="sm-nav-item"><a class="sm-nav-link sm-nav-link--split" href="https://www.google.com">Google</a><button class="sm-nav-link sm-nav-link--split sm-sub-toggler"></button>
  <ul class="sm-sub">
    ...
  </ul>
</li>

which would result in:

Compared to a regular parent item that only acts as a sub menu toggler button on click - e.g.:

<li class="sm-nav-item"><a class="sm-nav-link" href="#">Sub</a>
  <ul class="sm-sub">
    ...
  </ul>
</li>

which looks like:

You could still set an actual URL in the href attribute of the link for regular items but th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jolajaslon
Comment options

Answer selected by jolajaslon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants