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

    Is there any way I can stop wayfinder adding ’ class="last" ’ to the last list item?

    Thanks
      • 3232
      • 380 Posts
      &lastClass parameter lets you set the "last" class.

      If you want it remove it all together, I think you can do it via custom templates.

      (someone else might be more helpful)
        • 7231
        • 4,205 Posts
        Quote from: betoranaldi at Dec 11, 2008, 01:13 PM

        &lastClass parameter lets you set the "last" class.
        If you want it remove it all together, I think you can do it via custom templates.
        That’s pretty much it. By default WF will add first, active and last classes to the corresponding menu items. You can either change the class names or use custom tpls and not use WFs classes.

        There is also the option to hack out the ’last’ class but I would need to look at the code to figure out how.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 12390
          • 39 Posts
          Cheers I added &lastClass=`` and it’s gone. smiley