Archived

This topic is now archived and is closed to further replies.

  • 0

Twitter Bootstrap behaviour on navbar


Question

Posted · Report post

In another thread when questioning why a click on a top level menu item in the new navbar does not link to the relevant page as it does with the classic navbar the response was "Twitter does it this way for a reason." - I assume this is to follow their interface standards? Both myself and others would prefer the behaviour of the classic navbar applied to the new one. The workaround of adding back the same page as a 'sub link' on the menu is not ideal and can even be confusing. Is there no way of overriding Twitter Bootstrap limitations? An add-on or hack of some kind?

 

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Hi there,

 

The Navbar isn't unfortunately able to accomodate a link as well as an anchor. The reason for this is due to the rise in mobile/repsonsive sites which use touch screen devices. Somone trying to access the nav using a touch screen device would also activate the link and then lose the drop down when the page redirected.

 

There's no official way to do this that I'm aware of, as it will probably be a js hack. There are some posts on google relating to fixing this inside bootstrap by changing the class, but they seem to disable the drop down menu and only activate the link.

Share this post


Link to post
Share on other sites

Posted · Report post

OK sounds like a very good reason! Thanks for the explanation.

Share this post


Link to post
Share on other sites

Posted · Report post

You're welcome :-)

Share this post


Link to post
Share on other sites