Skip links are internal page links which enable accessibility navigation on a webpage. They are used by screen readers for bypassing or skipping over repetitive web page content.
A recent question on the Genesis Framework Community forum was asked to find out how to remove the primary navigation skip link from the Genesis output.
If you want to examine the Genesis code that creates the skip links, you can find it in the genesis_skip_links() function in the lib/structure/header.php file.
This function's default output is a three element array as shown here using the Kint debugger:
The Genesis developers included a 'genesis_skip_links_output' filter for manipulating this array as needed. To remove an array element using this filter, simply unset it. The result of removing the primary navigation array element is shown in this Kint dump:
Here's the code for removing the skip link array element:
The 'genesis_skip_links_output' filter can also be used to add skip links to your site as well. Add an element to the $links array where the key is the name of the HTML element's ID you're linking to.