-
-
Save srikat/ab1c80f582eb2398bb62 to your computer and use it in GitHub Desktop.
How to make Navigation be toggled by a hamburger MENU icon in Altitude Pro. https://sridharkatakam.com/how-to-make-navigation-be-toggled-by-a-hamburger-menu-icon-in-altitude-pro/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu' ).addClass( 'responsive-menu' ).before('<div class="responsive-menu-icon"></div>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Responsive Menu | |
--------------------------------------------- */ | |
.responsive-menu-icon { | |
cursor: pointer; | |
display: none; | |
margin-bottom: 10px; | |
text-align: center; | |
} | |
.responsive-menu-icon::before { | |
color: #fff; | |
content: "\f333"; | |
font: normal 24px/1 "dashicons"; | |
margin: 0 auto; | |
} | |
.nav-secondary .responsive-menu-icon { | |
margin: 10px auto 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Responsive Menu | |
--------------------------------------------- */ | |
.responsive-menu-icon { | |
cursor: pointer; | |
padding: 24px 0; | |
float: right; | |
margin-left: 20px; | |
line-height: 1; | |
} | |
.site-header.dark .responsive-menu-icon { | |
padding: 14px 0; | |
} | |
.responsive-menu-icon::before { | |
color: #fff; | |
content: "\f333"; | |
font: normal 24px/1 "dashicons"; | |
margin: 0 auto; | |
vertical-align: middle; | |
} | |
.nav-secondary .responsive-menu-icon { | |
margin: 10px auto 0; | |
} | |
.genesis-nav-menu.responsive-menu { | |
display: none; | |
} | |
.menu-text { | |
color: #fff; | |
vertical-align: top; | |
margin-top: 5px; | |
margin-left: 5px; | |
display: inline-block; | |
font-size: 14px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.genesis-nav-menu a { | |
color: #fff; | |
display: block; | |
font-size: 14px; | |
font-weight: 200; | |
letter-spacing: 1px; | |
padding: 30px 15px; | |
text-transform: uppercase; | |
} | |
.site-header.dark .genesis-nav-menu a { | |
padding: 20px 15px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.genesis-nav-menu a { | |
color: #fff; | |
display: block; | |
font-size: 14px; | |
font-weight: 200; | |
letter-spacing: 1px; | |
/*padding: 30px 15px;*/ | |
padding: 29px 15px; | |
text-transform: uppercase; | |
} | |
.site-header.dark .genesis-nav-menu a { | |
/*padding: 20px 15px;*/ | |
padding: 19px 15px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.responsive-menu-icon { | |
float: none; | |
margin-left: 0; | |
padding-bottom: 10px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu' ).addClass( 'responsive-menu' ).before('<div class="responsive-menu-icon"><span class="menu-text">MENU</span></div>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment