• Hi All,

    Hope this is the correct place for this post. I am trying to create a custom linker sub menus, so it should not be able to go anywhere. When creating the link, I use the “#” for the link. In my understanding this should not direct to any page, so that one can include sub menus. However my site always attempts to go to the current URL {page} / #
    e.g.: http://www.anthonypeyper.com/current-page/#

    Is there a fix for his or am I doing something wrong?

    Appreciate any help in this regard!

    THANK YOU!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • instead of href=’#’
    do href=’javascript:void(0)’

    Using an # or anchor id is a link to the same page, #name is a spot on the page with id=’name’ so using the # as an href will cause the page to link to itself and reload.

    Thread Starter acp73

    (@acp73)

    Hi…

    Thank you for the info… unfortunately i couldn’t add the javascript to the custom menu link in wordpress. I did get a brain wave though and used css instead.

    Just incase this could help anybody else:

    .site-navigation > div > ul > li.menu-item-has-children > a {
    pointer-events: none;
    cursor: default;
    }

    That works too

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Unlinked Custom Link’ is closed to new replies.