Hi all, an old programmer set up a clien’ts website and the dropdown (child) menu is not working on mobile. It works just fine on desktop.
Any idea why? Thanks!
/* ******************************************************************************
*********************************************************************************
This file contains all the neccessary styles to control how your
menu items appear, including the link and hover effects.
*********************************************************************************
****************************************************************************** */
.custom-menu-primary .hs-menu-wrapper ul {
padding: 0;
margin-bottom: 0;
list-style: none;
font-size: 13px;
}
.custom-menu-primary ul li.hs-item-has-children.clicked ul.hs-menu-children-wrapper {
display: block;
}
.custom-menu-primary ul li{
display: inline-block;
}
.custom-menu-primary ul li.hs-item-has-children {
position: relative;
}
.custom-menu-primary ul li a{
position: relative;
display: block;
line-height: 20px;
font-weight: bold;
text-transform: uppercase;
text-shadow: none;
text-decoration: none;
}
.custom-menu-primary .hs-menu-wrapper > ul > li.hs-item-has-children > a:after {
display: inline-block;
width: 0;
height: 0;
margin-left: 5px;
vertical-align: middle;
border-top: 4px dashed;
border-top: 4px solid\9;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: “”;
}
.custom-menu-primary ul.hs-menu-children-wrapper {
position: absolute;
display: none;
right: 0 !important;
min-width: 208px;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
box-shadow: 0 6px 12px rgba(0,0,0,.175);
left: auto !important;
padding: 5px 0;
font-size: 14px;
border-top-left-radius: 0;
border-top-right-radius: 0;
z-index: 1000;
background-clip: padding-box;
}
.custom-menu-primary ul.hs-menu-children-wrapper li a {
font-weight: normal;
text-transform: none;
display: block;
padding: 3px 20px;
line-height: 1.42857143;
}
.custom-menu-primary ul ul li {
display: block;
}
.custom-menu-primary ul ul li a:hover{
background-image: -webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);
background-image: -o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);
background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));
background-image: linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=‘#fff5f5f5’, endColorstr=‘#ffe8e8e8’, GradientType=0);
background-repeat: repeat-x;
}
@media(max-width:1199px){
.custom-menu-primary ul li a {
padding: 10px 5px;
}
}
@media(max-width:991px){
.child-trigger {
position: absolute;
right: 0;
width: 100%;
height: 40px;
line-height: 40px;
top: 0;
text-align: center;
z-index: 999;
cursor: pointer;
}
.custom-menu-primary .hs-menu-wrapper>ul ul li a:hover {
background-image: none;
}
.header__navigation.header--element {
margin: 0 !important;
border-top: 1px solid #ddd;
}
.custom-menu-primary ul li {
display: block;
}
.custom-menu-primary ul li + li {
border-top: 1px solid #ddd;
}
.custom-menu-primary ul li a {
font-size: 16px;
padding: 10px;
}
a.header-btn {
font-size: 16px;
display: block;
}
.header-btn-wrap {
margin: 0 !important;
padding: 0;
border-top: 1px solid #ddd;
}
.mobile-open .custom-header {
padding-bottom: 1px;
}
.custom-menu-primary ul.hs-menu-children-wrapper {
position: static;
box-shadow: none;
border: none;
}
.custom-menu-primary .hs-menu-wrapper > ul ul li a {
line-height: 20px;
padding: 5px 15px 5px 25px;
font-size: 14px;
}
.custom-menu-primary ul ul li {
border: none;
}
}
@media(max-width:767px){
}

