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

    Hi,
    Is there any possibility to put a text as parent for the dropdown in the navigation, without making it a link. Usually you would create this as a link and make it href=”#”, but using an anchor seems like it’s clickable and might confuse some users. Is it possible to use plain text for a navigation parent-point with a working dropdown menu?

    #196694

    Hi mat0r!

    In WordPress dashboard please go to Appearance > Menus and add a new link with url # and your menu item will be like a plain text http://i.imgur.com/9I3QF9j.jpg

    Regards,
    Yigit

    #196698

    As i said, i don’t want it to be an link. This has nothing to do with appearance, but in fact, on mobile devices it closes the navigation if you click on the link with the “#” and you’ll stay on the same site – which might confuse some users. We want this not to be a link, but to be plain text such as a span, so that the navigation doesn’t close or at least to make clear that this is no link!

    #196847

    Hey!

    Please inspect the menu item that you want then look for the menu id. Apply a pointer events or cursor property to remove the link:

    #menu-item-755 a {
    cursor: default;
    pointer-events: none;
    }

    The menu-item id 755 might be different on your installation.

    Cheers!
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Making navigation parent points plan text (instead of a link)’ is closed to new replies.