Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 11, 2015 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/d27cc9ed68a43ce5c9f6 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/d27cc9ed68a43ce5c9f6 to your computer and use it in GitHub Desktop.
Add a skip link for a footer nav
<?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