-
Hello, I would like to change the main menu to show child sections on hover, not on click. Can somebody help me make that change in the code? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
crftwrk
Aug 23, 2022
Replies: 1 comment 9 replies
-
You must split mobile and lg view, because on touchscreens there is no Do this, snippet goes in your child to // Dropdown in mobile offcanvas-menu always open
@include media-breakpoint-down(lg) {
#bootscore-navbar .dropdown-menu:not(.navbar .dropdown-menu.dropdown-search) {
display: block;
}
#bootscore-navbar .nav-item .dropdown-menu.invisible {
visibility: visible;
}
}
// Dropdown open on hover lg size
@include media-breakpoint-up(lg) {
#bootscore-navbar .nav-item .dropdown-menu {
margin-top: 0;
display: block;
visibility: hidden;
opacity: 0;
transition: .7s;
}
#bootscore-navbar .nav-item:hover .dropdown-menu {
visibility: visible;
opacity: 1;
}
} If you want to make the $('#bootscore-navbar .nav-link.dropdown-toggle').click(function () {
location.href = this.href;
}); Clear browser cache. Does this help? |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
crftwrk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You must split mobile and lg view, because on touchscreens there is no
:hover
Do this, snippet goes in your child to
scss/_bscore_custom.scss
: