Doubt about dropdown menu WORDPRESS

1

I'm developing a website in wordpress and in the menu I have an item that is dropdown as follows:

  • HOME
  • COURSES
    • COURSE1
    • COURSE2
  • ABOUT

But I wanted the user not to be redirected to another page if he inadvertently clicked on COURSES, rather than clicking on one of the submenus.

How can I do this?

    
asked by anonymous 09.01.2017 / 12:23

1 answer

1

Depending on the theme of your Wordpress this is customizable in the theme's own customization menu.

But leaving that aside, you can use one of the following alternatives:

  • Change the link of the Cursos item, which is in the menu, to redirect to the% ur # , so clicking it will not be redirected to any other link

  • Add a specific class to this menu item, and use some jQuery code or an #

  • Use the "Disable Parent Menu Link" plugin or create your own , with similar functionality

  • Set href of 'non-clickable' items to javascript:void(0)

  • 09.01.2017 / 12:37