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

    I’ve got a Wayfinder menu with dropdowns. Very nice CSS.

    How would I go about making the parent menu items just # links? I don’t want people to access them. If I make them hyperlinks and set it to "#" in the settings, it sends you to my home directory, rather than # on the page you’re on.

    I hope this makes sense. Any help appreciated!

    Thanks.
      • 26931
      • 2,314 Posts
      hi benc,

      try the "Anchors Away" plugin -> http://modxcms.com/forums/index.php?topic=15753.0
        • 3069
        • 6 Posts
        Ooh, that looks like exactly what I need!

        Is there a particular place I should pop that, or just in a header php file or something?
          • 3069
          • 6 Posts
          Sorry, that was a stupid question. It goes in plugins! Duh!
            • 26931
            • 2,314 Posts
            Is there a particular place I should pop that
            yes, go to "Elements" -> "Manage Elements" -> "Plugins" -> "New Plugin" -> insert the plugin code
            ...and on the "System Events"-tab for your plugin check "OnWebPagePrerender"

            *edit: okay, you found it smiley