This topic has 6 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler
How to make the mobile menu open from left to right?
Hello,
Please try to add this code in Theme Options > Styling > Custom css > Global Custom css:
.header-wrapper header .container-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.header-wrapper .navbar-toggle {
right: auto;
left: 10px;
}
.mobile-menu-wrapper {
-webkit-transform: translate3d(-270px, 0, 0);
transform: translate3d(-270px, 0, 0);
right: auto;
left: 0;
}
.mobile-menu-opened .template-content {
-webkit-transform: translate3d(270px, 0, 0);
transform: translate3d(270px, 0, 0);
}
Regards
Hi, I tried to use this code and my mobile navbar was moved to the left, which I wanted. But somehow the Logo moved to the right and blocking the Cart & Wishlist Icon.
Also when I scroll down through the content, the navbar moved back to the right.
Can you help me?
Hello @mrsarajar,
.header-wrapper header .container-wrapper, .et-header-full-width .fixed-header .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.header-wrapper .navbar-toggle, .fixed-header .navbar-toggle{
right: auto;
left: 10px;
}
.mobile-menu-wrapper {
-webkit-transform: translate3d(-270px, 0, 0);
transform: translate3d(-270px, 0, 0);
right: auto;
left: 0;
}
.mobile-menu-opened .template-content {
-webkit-transform: translate3d(270px, 0, 0);
transform: translate3d(270px, 0, 0);
}
.header-wrapper .header-logo, .fixed-header .header-logo {
width: 100% !important;
padding-left: 0px !important;
float: none;
text-align: center;
}
.fixed-header .header-logo img.logo-fixed {
display: inline-block;
}
.global-header-hamburger-icon .fixed-header .navbar-header, .global-header-hamburger-icon .navbar-header {
margin-right: 1em;
}
Regards
It destroyed my desktop menu 🙁
Hello @mrsarajar,
Please change the code to:
@media only screen and (max-width: 992px){
.header-wrapper header .container-wrapper, .et-header-full-width .fixed-header .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.header-wrapper .navbar-toggle, .fixed-header .navbar-toggle{
right: auto;
left: 10px;
}
.mobile-menu-wrapper {
-webkit-transform: translate3d(-270px, 0, 0);
transform: translate3d(-270px, 0, 0);
right: auto;
left: 0;
}
.mobile-menu-opened .template-content {
-webkit-transform: translate3d(270px, 0, 0);
transform: translate3d(270px, 0, 0);
}
.header-wrapper .header-logo, .fixed-header .header-logo {
width: 100% !important;
padding-left: 0px !important;
float: none;
text-align: center;
}
.fixed-header .header-logo img.logo-fixed {
display: inline-block;
}
.global-header-hamburger-icon .fixed-header .navbar-header, .global-header-hamburger-icon .navbar-header {
margin-right: 1em;
}
}
Regards
You must be logged in to reply to this topic.Log in/Sign up