Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active December 4, 2015 07:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neilgee/3160998027a3f1edba4f to your computer and use it in GitHub Desktop.
Save neilgee/3160998027a3f1edba4f to your computer and use it in GitHub Desktop.
Reposition Genesis Primary Navigation to Header Right Widget and Remove Structural Wrap
<?php
//do not copy the opening php tag above
/**
* Swap Primary Nav to Header Right and Remove Wrap
*
* @package Swap Primary Nav
* @author Neil Gee
* @link http://coolestguidesontheplanet.com/switching-primary-menu-genesis-theme-header-right/
* @copyright (c) 2014, Neil Gee
*/
remove_action( 'genesis_after_header','genesis_do_nav' ) ;
add_action( 'genesis_header_right','genesis_do_nav' );
add_theme_support( 'genesis-structural-wraps', array( 'header', 'menu-secondary', 'footer-widgets', 'footer' ) );//menu-primary is removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment