wp-bootstrap-navwalker icon indicating copy to clipboard operation
wp-bootstrap-navwalker copied to clipboard

Parent clickable and mobile expanded

Open mattiazer opened this issue 12 years ago • 2 comments

How can i make the parant clickable? now the parent has the link # and when in mobile every thing should be expanded so i can see parents children and be able to click parent in mobile?

is that possible?

mattiazer avatar Dec 25 '13 17:12 mattiazer

This is not supported with wp-bootstrap-navwalker and would require modification of the walker class.

This class is intended to implement Bootstrap 3+ as is with me modification to the features. What you talking about is definitely possible but from a UX standpoint I would challenge you to rethink your content structure.

There are two options I usually discuss with clients.

The first it having the sub navigation only on the parent page, and inside the page (such as a sidebar menu) content not in the main menu. If your menu is quite complex this is the best option.

The second, eliminate the parent page all together. If you have a dropdown people rarely view the parent page as it's redundant, top menu items should be general a require no explanation. Say your top level item is "Services" you user doesn't need a rundown of the fact that you offer services and then another page that describes a single service. I usually put it all on one page, or skip to the parent page as people don't want to have to drill down to find content.

SideQuestDIY avatar Dec 27 '13 23:12 SideQuestDIY

What about setting a media query where when it's at a certain size. It removes the #href="" only becoming a dropdown while keeping the mobile UX.

Markj89 avatar Dec 14 '15 17:12 Markj89