• Resolved jameskrech

    (@jameskrech)


    I am trying to create a WordPress drop down navigation menu and I want the parent to only drop down child links, I do not want the parent to navigate.

    • This topic was modified 4 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    There is not an option to add a menu item without a link in WP, but you could:

    1. Create a custom link and set the URL to #. This works well if your header is not fixed. If it is and the user clicks on the menu item, the user will be sent to the top of the page.
    2. Add a custom class to the item and then use JS to remove the link.
    3. The same as #2, but with PHP.
    Thread Starter jameskrech

    (@jameskrech)

    Thanks I am glad to know WordPress does not allow it. You gave me a good idea will just put homepage as url.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘drop down navigation menu’ is closed to new replies.