Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save topleague/f2dbade3862c52fae66ac4dfde49c1ca to your computer and use it in GitHub Desktop.
Save topleague/f2dbade3862c52fae66ac4dfde49c1ca to your computer and use it in GitHub Desktop.
Inline Mobile Responsive Menu in Parallax Pro Theme
// Add the following to your functions.php
// Source: http://genesiswp.net/relocate-responsive-menu-parallax-pro/
// Note: Before adding the code, remove or comment out the following line (on Line Number 93)
// add_theme_support( 'genesis-menus', array( 'primary' => __( 'Before Content Menu', 'parallax-pro' ), 'secondary' => __( 'Footer Menu', 'parallax-pro' ) ) );
// Rename primary and secondary navigation menus.
add_theme_support( 'genesis-menus', array(
'primary' => __( 'Primary Navigation Menu', 'parallax-pro' ),
'secondary' => __( 'Footer Menu', 'parallax-pro' ) )
);
// Remove Header Right widget area
unregister_sidebar( 'header-right' );
// Reposition the primary navigation menu
remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' );
add_action( 'genesis_header', 'genesis_do_nav' );
// Remove Primary Menu's wrap.
add_theme_support( 'genesis-structural-wraps', array(
'header',
// 'menu-primary',
'menu-secondary',
'footer-widgets',
'footer'
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment