[Resolved] Top level menu link

Home Forums Support [Resolved] Top level menu link

Home Forums Support Top level menu link

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #120741
    Graham

    Hi Tom,

    Don’t know if you can help with this, or if it is a WordPress problem.

    When I create a link in the navbar and it has child pages, how do I make clicking on the top-level menu item do nothing?

    I went to a website where this works and by inspecting the element in Firefox saw:

    <a class="sf-with-ul" href="#" target="">Top Level</a>

    It didn’t say Top Level, but you know what I mean.

    All I’ve been able to do is make it link to a blank page, which is pretty dumb.

    Off to bed now, so no hurry.

    Graham

    #120757
    Tom
    Lead Developer
    Lead Developer

    Totally possible – while in “Appearance > Menus”, add your top level item as a “Custom Link”.

    In the URL field, just add a hashtag: #

    That should do it ๐Ÿ™‚

    #120867
    Graham

    Thanks Tom.

    Would never have figured that out in a million years.

    Well not without an awful lot of Googling anyway!

    #120939
    Tom
    Lead Developer
    Lead Developer

    Glad I could help! ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.