Last active
November 19, 2015 02:21
-
-
Save srikat/9bc46817d127f1a4dd36 to your computer and use it in GitHub Desktop.
How to a responsive mobile menu before footer in Focus Pro. https://sridharkatakam.com/how-to-a-responsive-mobile-menu-before-footer-in-focus-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
// Add Theme Support for Genesis Menus | |
add_theme_support( 'genesis-menus', array( | |
'primary' => __( 'Primary Navigation Menu', 'genesis' ), | |
'secondary' => __( 'Secondary Navigation Menu', 'genesis' ), | |
'footer' => __( 'Footer Navigation Menu', 'genesis' ), | |
) ); | |
// Hook menu before footer | |
add_action( 'genesis_before_footer', 'sk_custom_footer' ); | |
function sk_custom_footer() { | |
printf( '<nav %s>', genesis_attr( 'nav-footer' ) ); | |
wp_nav_menu( array( | |
'theme_location' => 'footer', | |
'container' => false, | |
'depth' => 1, | |
'fallback_cb' => false, | |
'menu_class' => 'genesis-nav-menu', | |
) ); | |
echo '</nav>'; | |
} |
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-footer .genesis-nav-menu.responsive-menu > .menu-item-has-children::before { | |
content: normal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment