Last active
August 29, 2015 14:22
-
-
Save marisqaporter/b15f751c1a248d18c3eb to your computer and use it in GitHub Desktop.
Position Primary or Secondary Menu above Header in Parallax Pro by Genesis
This file contains hidden or 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
.site-header { | |
top:56px; | |
} | |
.admin-bar .site-header { | |
top:88px; | |
} | |
.nav-secondary { | |
position:fixed; | |
width:100%; | |
margin-top:0; | |
background-color:#333; | |
} | |
.site-inner { | |
margin-top:90px; | |
} | |
@media screen and (max-width:800px) { | |
.col-fourth, .col-three-fourth, .col-half { | |
width:100%; | |
} | |
.site-header { | |
top:150px; | |
} | |
.nav-secondary { | |
position:relative; | |
} | |
} |
This file contains hidden or 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
<?php | |
/*do not include php opening and closing tags*/ | |
//Reposition the secondary navigation menu - find and comment out these lines | |
//remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
//add_action( 'genesis_footer', 'genesis_do_subnav', 7 ); | |
/** Move Secondary Navigation Menu Above Header */ | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
add_action( 'genesis_before_header', 'genesis_do_subnav' ); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment