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

    I am having issues with way finder.

    By default, the startID got the class"active" by default, how do I change that ? Thanks

    [[!Wayfinder? &startId=`23` &displayStart=`1` &startItemTpl=`startitemtpl` &outerTpl=`outertpl`]]
    


    outertpl
    [[+wf.wrapper]]
    


    <li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a></li>
    [[+wf.wrapper]]
    



    The result:
    <ul id="nav" class="nav navbar-nav pull-right l_tinynav1">
    <li class="first active">.....
    

    This question has been answered by carlo_13. See the first response.

      Webdesigner and musician.
      • 22840
      • 1,572 Posts
      Try using a empty &hereClass

      [[!Wayfinder? &startId=`23` &displayStart=`1` &startItemTpl=`startitemtpl` &hereClass=`` &outerTpl=`outertpl`]]
        • 34197
        • 138 Posts
        Quote from: paulp at Sep 09, 2015, 10:01 AM
        Try using a empty &hereClass

        [[!Wayfinder? &startId=`23` &displayStart=`1` &startItemTpl=`startitemtpl` &hereClass=`` &outerTpl=`outertpl`]]

        Hi, thanks for your answer.


        Unfortunately, the result is the same, there is still an "active" class by default on the first element.
          Webdesigner and musician.
        • discuss.answer
          • 34197
          • 138 Posts
          Ok, so I have the solution.

          [[!Wayfinder? &selfClass=`active` &hereClass=`0` &startId=`23` &displayStart=`1` &startItemTpl=`startitemtpl` &outerTpl=`outertpl` ]]


          Thanks anyways

          Source:
          https://forums.modx.com/thread/40279/solved---displaystart-class-when-viewing-children
            Webdesigner and musician.