Title: Unlinked Custom Link
Last modified: December 11, 2017

---

# Unlinked Custom Link

 *  [acp73](https://wordpress.org/support/users/acp73/)
 * (@acp73)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/unlinked-custom-link/)
 * 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/#](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funlinked-custom-link%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/unlinked-custom-link/#post-9772780)
 * 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](https://wordpress.org/support/users/acp73/)
 * (@acp73)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/unlinked-custom-link/#post-9774360)
 * 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; }
 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/unlinked-custom-link/#post-9775677)
 * That works too

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/unlinked-custom-link/#post-9775677)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
