Skip to content

Instantly share code, notes, and snippets.

@marisqaporter
Last active August 29, 2015 14:22
Show Gist options
  • Save marisqaporter/b15f751c1a248d18c3eb to your computer and use it in GitHub Desktop.
Save marisqaporter/b15f751c1a248d18c3eb to your computer and use it in GitHub Desktop.
Position Primary or Secondary Menu above Header in Parallax Pro by Genesis
.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;
}
}
<?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