Created
November 11, 2015 03:12
-
-
Save reasonstousegenesis/d27cc9ed68a43ce5c9f6 to your computer and use it in GitHub Desktop.
Add a skip link for a footer 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
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Add a skip link for a footer nav | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-nav-menu-supported/ | |
*/ | |
add_filter( 'genesis_skip_links_output', 'rtug_skip_links_output' ); | |
function rtug_skip_links_output( $links ) { | |
if ( genesis_nav_menu_supported( 'footer' ) && has_nav_menu( 'footer' ) ) { | |
$links['genesis-nav-footer'] = __( 'Skip to footer navigation', 'genesis' ); | |
} | |
return $links; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment