P
P
Pavel Designer2016-03-30 13:03:32
HTML
Pavel Designer, 2016-03-30 13:03:32

How to make the parent menu item inactive?

Can you please tell me how to make the parent item in the WordPress menu inactive?
You need to make a drop-down menu for the site so that the child items are active, and the parent item is inactive. I just hovered over it, it is inactive, a submenu appeared, selected the desired item and that's it.
In the VI settings, you can select only existing pages or posts for items, but this is not necessary.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Novikov, 2016-03-30
@pozZzitiv

add an arbitrary link, in the "address" field write:
javascript:void(0);

D
devstudent, 2016-03-30
@devstudent

1. remove the href attribute and that's it, it's not a link
2. Or, if there is a click handler, add it to itreturn false; // отмена переходя по хештегу

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question