Community Forums › Forums › Archived Forums › Design Tips and Tricks › Help Changing Showcase Pro Mobile Menu to Altitude Pro Mobile Menu
- This topic has 7 replies, 2 voices, and was last updated 8 years, 2 months ago by fattony69.
-
AuthorPosts
-
August 2, 2016 at 1:07 am #190623fattony69Participant
Hey,
I am working on customizing a Showcase Pro theme. It is a fantastic theme and working me well. Although, I am such a fan of the Altitude Pro Mobile Menu. Essentially, Showcase Pro has the hamburger menu to the right of the logo unlike Altitude Pro which is below the logo (what I am trying to do). Unfortunately, I am struggling to do this. I was wondering if someone here could help me.
Here's the Showcase mobile menu CSS:
@media only screen and (max-width: 800px) { .sub-menu-toggle, .menu-toggle { display: block; visibility: visible; } .nav-primary, .nav-primary .sub-menu { width: 100%; display: none; } .menu-toggle { display: block; float: right; background: none; padding: 6px 2px 0; text-indent: 9999px; color: transparent; overflow: hidden; width: 50px; height: 50px; margin-right: -12px; margin-top: -5px; position: relative; } .header-image .menu-toggle { margin-top: 12px; } .menu-toggle:before { position: absolute; color: #fff; top: 3px; right: 13px; content: "\f394"; display: inline-block; font: normal 30px/1.5 'ionicons'; margin: 0 auto; padding: 0; } .menu-toggle.activated::before { content: "\f2d7"; right: 16px; } .sub-menu-toggle { position: absolute; right: 0; top: 10px; background: transparent; padding: 6px 2px 0; } .sub-menu-toggle:before { content: "\f123"; color: #fff; font: normal 16px/1 'ionicons'; padding: 14px 5px 14px; cursor: pointer; } .nav-primary .genesis-nav-menu li { width: 100%; } .nav-primary .genesis-nav-menu > li:first-child { margin-top: 20px; } .nav-primary .genesis-nav-menu li .sub-menu { margin: 0 0 0 24px; width: calc( 100% - 24px ); } .nav-primary .genesis-nav-menu a { font-size: 18px; margin: 0; padding: 10px 0; } }
This is the Altitude Pro's Mobile Menu:
.genesis-nav-menu.responsive-menu { display: none; float: none; padding-bottom: 20px; } .genesis-nav-menu.responsive-menu .menu-item, .responsive-menu-icon { display: block; } .genesis-nav-menu.responsive-menu .menu-item:hover { position: static; } .genesis-nav-menu.responsive-menu li.current-menu-item > a, .genesis-nav-menu.responsive-menu .sub-menu li.current-menu-item > a:hover, .genesis-nav-menu.responsive-menu li a, .genesis-nav-menu.responsive-menu li a:hover { background: none; border: none; display: block; padding: 10px 0; text-transform: none; } .genesis-nav-menu.responsive-menu .menu-item-has-children { cursor: pointer; } .genesis-nav-menu.responsive-menu .menu-item-has-children > a { margin-right: 60px; } .genesis-nav-menu.responsive-menu > .menu-item-has-children:before { content: "\f347"; float: right; font: normal 20px/1 "dashicons"; height: 20px; padding: 7px 20px; right: 0; text-align: right; z-index: 9999; } .genesis-nav-menu.responsive-menu .menu-open.menu-item-has-children:before { content: "\f343"; } .genesis-nav-menu.responsive-menu > .menu-item > .sub-menu { display: none; } .genesis-nav-menu.responsive-menu .sub-menu { background-color: rgba(255, 255, 255, 0.05); left: auto; opacity: 1; position: relative; -moz-transition: opacity .4s ease-in-out; -ms-transition: opacity .4s ease-in-out; -o-transition: opacity .4s ease-in-out; -webkit-transition: opacity .4s ease-in-out; transition: opacity .4s ease-in-out; width: 100%; z-index: 99; } .genesis-nav-menu.responsive-menu .sub-menu .sub-menu { background-color: transparent; margin: 0; padding-left: 25px; } .genesis-nav-menu.responsive-menu .sub-menu li a, .genesis-nav-menu.responsive-menu .sub-menu li a:hover { padding: 10px 0; position: relative; text-transform: none; width: 100%; } .genesis-nav-menu.responsive-menu .current-menu-item > a, .genesis-nav-menu.responsive-menu .sub-menu .current-menu-item > a:hover, .genesis-nav-menu.responsive-menu > li.menu-item-has-children:hover > a, .genesis-nav-menu.responsive-menu a:hover { background: none; } .site-header .genesis-nav-menu.responsive-menu .current-menu-item > a, .site-header .genesis-nav-menu.responsive-menu .sub-menu li a, .site-header .genesis-nav-menu.responsive-menu .sub-menu li a:hover, .site-header .genesis-nav-menu.responsive-menu .sub-menu, .site-header .genesis-nav-menu.responsive-menu > .menu-item-has-children:before, .site-header .genesis-nav-menu.responsive-menu > li:hover > a, .site-header .genesis-nav-menu.responsive-menu a:hover { color: #fff; }
Can anyone please help me? Please and thank you!
August 2, 2016 at 1:48 am #190626Genesis DeveloperMemberCan you provide your site URL?
August 2, 2016 at 2:27 am #190630fattony69ParticipantThe website URL is: http://bunziez.com/dad/
August 2, 2016 at 6:21 pm #190666fattony69ParticipantFriendly bump.
August 2, 2016 at 7:51 pm #190670Genesis DeveloperMemberReplace the existing code with new one
.header-image .title-area { display: inline-block; width: 100%; } .header-image .site-title > a { background-position: center center !important; background-size: contain !important; min-height: 75px; width: 100%; } .menu-toggle { background: none; clear: both display: block; padding: 6px 2px 0; text-indent: 9999px; color: transparent; overflow: hidden; width: 50px; height: 50px; margin: 10px auto 0; position: relative; }
August 2, 2016 at 9:45 pm #190673fattony69ParticipantThank you for the help so far. You've gotten closer than I have, although I am not where I want to achieve yet. Here's the comparison of what I want to do.
August 3, 2016 at 12:46 am #190677Genesis DeveloperMemberHere is the complete CSS for mobile menu
@media only screen and (max-width: 800px) { .sub-menu-toggle, .menu-toggle { display: block; visibility: visible; } .nav-primary, .nav-primary .sub-menu { width: 100%; display: none; } .menu-toggle { background: none; clear: both color: transparent; display: block; height: 50px; margin-right: 15px auto 0; overflow: hidden; padding: 6px 2px 0; position: relative; text-indent: 9999px; width: 50px; } .header-image .menu-toggle { margin-top: 12px; } .menu-toggle:before { position: absolute; color: #fff; top: 3px; right: 13px; content: "\f394"; display: inline-block; font: normal 30px/1.5 'ionicons'; margin: 0 auto; padding: 0; } .menu-toggle.activated::before { content: "\f2d7"; right: 16px; } .sub-menu-toggle { position: absolute; right: 0; top: 10px; background: transparent; padding: 6px 2px 0; } .sub-menu-toggle:before { content: "\f123"; color: #fff; font: normal 16px/1 'ionicons'; padding: 14px 5px 14px; cursor: pointer; } .nav-primary .genesis-nav-menu li { width: 100%; } .nav-primary .genesis-nav-menu > li:first-child { margin-top: 20px; } .nav-primary .genesis-nav-menu li .sub-menu { margin: 0 0 0 24px; width: calc( 100% - 24px ); } .nav-primary .genesis-nav-menu a { font-size: 18px; margin: 0; padding: 10px 0; } }
You messed somethings in CSS file.
August 3, 2016 at 1:04 am #190679fattony69ParticipantThank you so much for your help! It is very appreciated!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.