{"action":"created","issue":{"url":"https://api.github.com/repos/holger1411/understrap/issues/426","repository_url":"https://api.github.com/repos/holger1411/understrap","labels_url":"https://api.github.com/repos/holger1411/understrap/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/holger1411/understrap/issues/426/comments","events_url":"https://api.github.com/repos/holger1411/understrap/issues/426/events","html_url":"https://github.com/holger1411/understrap/issues/426","id":262282074,"number":426,"title":"Nav with hover and 1st (top) item clickable","user":{"login":"bruceconlon","id":7244699,"avatar_url":"https://avatars0.githubusercontent.com/u/7244699?v=4","gravatar_id":"","url":"https://api.github.com/users/bruceconlon","html_url":"https://github.com/bruceconlon","followers_url":"https://api.github.com/users/bruceconlon/followers","following_url":"https://api.github.com/users/bruceconlon/following{/other_user}","gists_url":"https://api.github.com/users/bruceconlon/gists{/gist_id}","starred_url":"https://api.github.com/users/bruceconlon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruceconlon/subscriptions","organizations_url":"https://api.github.com/users/bruceconlon/orgs","repos_url":"https://api.github.com/users/bruceconlon/repos","events_url":"https://api.github.com/users/bruceconlon/events{/privacy}","received_events_url":"https://api.github.com/users/bruceconlon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-03T02:01:33Z","updated_at":"2018-03-02T02:28:21Z","closed_at":"2018-03-02T02:28:21Z","author_association":"CONTRIBUTOR","body":"Is there an easy way in the markup to make the submenu show on hover rather than click? \r\n\r\nAlso to make the primary 1st nav item clickable to go to its page?\r\n\r\nSimilar to how it works here: [https://www.cisco.com/](https://www.cisco.com/)\r\n\r\nI've made the hover mostly work with the following, (although the menu stays on click):\r\n\r\n\t.dropdown-menu {\r\n\t\tborder-radius: 0;\r\n\t\tborder-top: 1px solid $gray-lighter;\r\n\t\t.sub-menu {\r\n\t\t\tleft: 100%;\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 0;\r\n\t\t\tvisibility: hidden;\r\n\t\t\tmargin-top: -1px;\r\n\t\t\tli {\r\n\t\t\t\t#{$hover-focus} {\r\n\t\t  \t\t\tvisibility: visible;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.dropdown {\r\n\t\t#{$hover-focus} {\r\n\t\t\t.dropdown-menu {\r\n\t\t\t\tdisplay: block;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.nav-tabs .dropdown-menu,\r\n\t.nav-pills .dropdown-menu,\r\n\t.navbar .dropdown-menu {\r\n\t\tmargin-top: 0;\r\n\t}\r\n\r\nAnd get the menu link if I change the following in the navwalker:\r\n\r\n\t\t\tif ( $args->has_children && $depth === 0 ) {\r\n\t\t\t\t// Change this to '#' if only wanting a hover, and not wanting clickable link\r\n\t\t\t\t$atts['href']        = ! empty( $item->url ) ? $item->url : '';\r\n\t\t\t\t$atts['data-toggle'] = 'dropdown';\r\n\t\t\t\t$atts['class']       = 'nav-link dropdown-toggle';\r\n\t\t\t} else {\r\n\r\nBut I can't see with the standard header menu code, why the primary menu item is not clickable?\r\n\r\n\t\t\t\t<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarNavDropdown\" aria-controls=\"navbarNavDropdown\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\r\n\t\t\t\t\t<span class=\"navbar-toggler-icon\"></span>\r\n\t\t\t\t</button>\r\n\r\n\t\t\t\t<!-- The WordPress Menu goes here -->\r\n\t\t\t\t<?php wp_nav_menu(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'theme_location'  => 'primary',\r\n\t\t\t\t\t\t'container_class' => 'collapse navbar-collapse',\r\n\t\t\t\t\t\t'container_id'    => 'navbarNavDropdown',\r\n\t\t\t\t\t\t'menu_class'      => 'navbar-nav',\r\n\t\t\t\t\t\t'fallback_cb'     => '',\r\n\t\t\t\t\t\t'menu_id'         => 'main-menu',\r\n\t\t\t\t\t\t'walker'          => new WP_Bootstrap_Navwalker(),\r\n\t\t\t\t\t)\r\n\t\t\t\t); ?>\r\n"},"comment":{"url":"https://api.github.com/repos/holger1411/understrap/issues/comments/369800302","html_url":"https://github.com/holger1411/understrap/issues/426#issuecomment-369800302","issue_url":"https://api.github.com/repos/holger1411/understrap/issues/426","id":369800302,"user":{"login":"Thomas-A-Reinert","id":5886977,"avatar_url":"https://avatars1.githubusercontent.com/u/5886977?v=4","gravatar_id":"","url":"https://api.github.com/users/Thomas-A-Reinert","html_url":"https://github.com/Thomas-A-Reinert","followers_url":"https://api.github.com/users/Thomas-A-Reinert/followers","following_url":"https://api.github.com/users/Thomas-A-Reinert/following{/other_user}","gists_url":"https://api.github.com/users/Thomas-A-Reinert/gists{/gist_id}","starred_url":"https://api.github.com/users/Thomas-A-Reinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thomas-A-Reinert/subscriptions","organizations_url":"https://api.github.com/users/Thomas-A-Reinert/orgs","repos_url":"https://api.github.com/users/Thomas-A-Reinert/repos","events_url":"https://api.github.com/users/Thomas-A-Reinert/events{/privacy}","received_events_url":"https://api.github.com/users/Thomas-A-Reinert/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T02:28:21Z","updated_at":"2018-03-02T02:28:21Z","author_association":"COLLABORATOR","body":"Closed due to one month without response, so I assume it has been fixed."}}
{"actor":{"display_login":"Thomas-A-Reinert"}}