Skip to content

Instantly share code, notes, and snippets.

@robneu
Last active December 10, 2015 01:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robneu/4356904 to your computer and use it in GitHub Desktop.
Save robneu/4356904 to your computer and use it in GitHub Desktop.
Add a mobile responsive menu to a Genesis Child Theme - Add to functions.php
<?php
//* Require Child Theme Functions
require_once( CHILD_DIR . '/lib/theme-js.php' );
add_action( 'genesis_header_right', 'prefix_mobile_menu_toggle', 5 );
/**
* Add a mobile menu toggle element
* to expand and collapse a mobile menu.
*
* @author FAT Media
* @link http://youneedfat.com/genesis-responsive-design-menu/
*
*/
function prefix_mobile_menu_toggle() {
echo '<div class="menu-toggle">';
echo '<span><a href="#">' . __( 'Menu', 'text-domain' ) . '</a></span>';
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment