I don't know what's what wrong with my parent menu items. I have two that aren't working on the first click on mobile devices (I've been testing this on my android phone).
To make it look mobile responsive, I added some css:
@media (max-width: 500px) {
&.main-navigation {
.menu-main-menu-container {
display: none;
position: absolute;
width: 80%;
ul#menu-main-menu {
display: block;
margin: 0;
#menu-item-6, #menu-item-7 {
ul.sub-menu {
display: none;
}
}
#menu-item-6:hover, #menu-item-7:hover {
ul.sub-menu {
display: block;
}
}
}// ul#menu-main-menu
}// .menu-main-menu-container
.menu-toggle {
margin: 0;
width: 20%;
}
.menu-toggle::before {
transform: translateX(100%);
}
}// end &.main-navigation
#header-search-toggle {
display: none;
}
}// max-width: 500px
It was like this from the start of my web project. I've built a handful of other wp projects the past year and this is the first time the parent menu items aren't clickable on the first click. Any ideas? Is this, perhaps, due to some sort of weird wordpress setting in the backend?