Last active
December 10, 2015 01:18
-
-
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
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
<?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