We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21446
    • 4 Posts
    Hi,

    My website: http://www.nickyhaze.nl

    The menu is working fine, but as you can see in the source code there is one "<li><a href=""></a></li>" too many in the menu...
    How do I solve this?

    This is the call in my template:

    <div id="navigation">
    <ul>
    [!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]`!]
    {{nav}}
    </ul>
    </div>


    And this is my {{nav}} chunk:

    <li><a href="[+wf.link+]">[+wf.linktext+]</a></li>



    Thanks in advance!
      • 33968
      • 863 Posts
      Try this instead:
      <div id="navigation">
      <ul>
      [!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]` &rowTpl=`nav`!]
      </ul>
      </div>
      


      If you write {{nav}} the contents of that chunk will appear in your page directly where the tag is, which is why you see the extra <li> item after your menu.
        • 21446
        • 4 Posts
        Thank you very much!!! laugh

        This topic can be closed