Basically, I am trying to get the menu to disappear when clicking a link. Here is an example site that demonstrates my problem:
http://themeforest.net/item/square-responsive-admin-app-with-angularjs/full_screen_preview/7511722
click the hamburger symbol
hover over 'UI Kit'
Click multiple links in the sub menu
As you can see when you click any of the links, the sub menu does not disappear. How can I make it disappear. I am using angular as my front end framework.
Related
I have been working on wordpress website and the theme am using used bootstrap 4 wp_bootstrap_navwalker.php for menu and my problem is the sub-menu doesn't display as expected, one is above the other so i follow Avoid dropdown menu close on click inside answer and and there is no change. is their any way i should edit this
Thank you
sub-menu is inside the parent menu with black color and when hover green color appear
I'm working on this site: http://editingplus.com.au
In the submenu Resource > Getting published, at some screen sizes when a link is clicked, instead of navigating to the link the submenu jumps to a different position and then closes. A second attempt at opening the menu and clicking the link works, but only if you try to click the same link--clicking a different link means you have to start again and click that link a further time.
This problem only occurs at smaller screen sizes where the Getting Published submenu doesn't fit to the right of the Resources submenu. Clicking on the Getting Published submenu makes it jump briefly from the left to the right of the Resources submenu before closing. At larger screen sizes where the Getting Published submenu fits to the right of the Resources submenu, links work on first click.
This screenshot shows the situation of the Getting Published submenu being to the left. It's when it's like this that the menu jumps then closes.
This is a problem with JavaScript--if I disable JS on my browser and the site falls back to CSS only menus, the links work first time.
I haven't made any custom menus. The site is using the Mins theme from GoDaddy, which is built off the Primer theme. As far as I can tell, neither of them are using any custom JS for the menus, and all the JS is standard WordPress JS.
StackOverflow recommended I check out these two other questions:
Jquery Drop Down Menu. The sub menu disappears when clicked. So, How to make the submenu stays when clicked?
Submenu disappearing when clicked in the submenu in wordpress
However, those are both to do with developing custom menus, and those menus not working ever when clicked, rather than only sometimes not working at certain screen sizes.
I'm guessing I will need to add some custom JS to this site to stop the menus not working, or somehow disable the JS so the menus roll back to pure CSS, but I'm not sure how to do either of those things.
Any help would be much appreciated!
Currently menu items expanded by clicking on arrow at right side. But I want to expand the list by clicking the item name. For example, in below image, I need to expand/collapse list by clicking on Settings instead of clicking on marked arrow head.
By default, it's only possible to expand the side navigation menu children submenu by clicking on the corresponding down arrow.
Maxime Tremblay described a solution and a demo.
I am building a page where I have to panes (left/right). Left pane will show the list of items and right pane will show the detail of selected item from left pane. However, when same page being displayed in Mobile it should show only List of item first. When selected any item in the list, than list pane should be hidden and detail pane should be showing. Detail pane will have a back button, which show the Left(list pane) and hide the detail pane.
Question: How can I achieve this scenario in twitter bootstrap?
Okay so you can hide the panel right panel initially by using .hidden-md hidden-lg, but after that you would need to enable things and hide them again with JS .toggle() or just literally .removeClass("...") and .addClass("...")
I have a Bootstrap navbar on my site with a collapsed menu that toggles on/off. I would like it so that when a user clicks one of the links in the menu (which is a dropdown, by the way), that active link should jump to the top of the menu. This way they can see a more expanded list of the dropdown items.
Here's a regular Bootstrap navbar. I want that when I click on "Dropdown", bring that active link to the top under "project name".
If I understand what you want to do correctly, from a user interface point of view I would strongly recommend against doing this. This is highly unexpected behaviour for the user who is likely to get confused as to why the thing they just tapped has moved. It could also cause mistakes from people opening the menu, then (since their finger is probably still close to the screen) accidentally clicking one of the menu items and being moved to a new page.
If you are worried about users not being able to see all the items maybe you should consider a different menu interface for your mobile devices such as an off-canvas menu (click the little 'toggle nav' button rather than the hamburner menu to see the off canvas menu). This would give you more space to play with for your menu items.