• Is there a way to create menu links that are just text, i.e. that can’t be clicked? I want to create a dropdown menu, but I don’t want the initial link to be a hyperlink. Hopefully that makes sense.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are using the WP Custom menus, set the link for the initial link to “#” and assign it a custom class name, such as “no-link” (Screen Options at the top of the custom menu page lets you make visible the custom class box).

    Then add to CSS
    li.no-link a { cursor: default}
    CSS may need to be more specific depending on your theme

    The link is still there except when clicked it links to the exact spot its already on. And the CSS cursor hides the pointer link cursor so the user doesn’t see it as a clickable link.

    Thread Starter lpleva1

    (@lpleva1)

    Worked perfectly. Thanks!

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

The topic ‘Menu items that are just text’ is closed to new replies.