Navigation
  • Hello.
    Html generated by tag 'nav' looks like this:
    li id="" /li
    li id="" /li
    li id="" /li
    ..

    Does anybody know, how can I generate navigation on my site this way:
    div id="" span page1 /span /div
    div id="" span page2 /span /div
    div id="" span page3 /span /div

    Thank you.
  • Heyo

    Currently the elements are hard coded in the lib/locomotive/liquid/tags/nav.rb file so you won't be able to get that result using the tag helper unless you modify the file.

    Is there any particular reason to use a div? Semantically a navigation is a list so using ul/li tags does make sense.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!