There is a submenu, when you hover on the list displays its submenu. On the mobile version, there is no concept of hover, and in order for a submenu to appear, you need to click on the list, but at the same time you go to the link.
1 answer
As an option, you can impose a similar menu, only for mobile phones. By type - "burger button" , by clicking on it on the left a full expanded menu rolls out.
Crutch option
On JS in the mobile version, cancel the click event on the links that expand the menu.
$('.menu-link').click(function(Event) { Event.preventDefault(); }) Now there are 2 options for development.
- Add the desired link to the drop-down menu
- We change the state of the original button (which expands the menu), and by clicking on it we send the user to the desired page.
- In fact, this is not the answer to the question. More like a tip. - Vladimir Glinskikh
- The published message does not contain a solution. When your reputation reaches the required level, you can leave comments on any message ; for now, please make an improvement in your post so that it will answer the question without further clarification from the author . - From the queue of checks - slippyk
- one@ Vladimir, in my opinion, nothing but advice can be answered to this question) - andreymal
- @slippyk, fixed - Andrew B
- @Andrey B After the change, the answer turned out to be the answer. - Vladimir Glinskikh
|