Accessibility - Skip link issue

We have a custom built header for our government websites that includes a skip link. Since Pro theme introduced its own skip link we now have 2 skip links which for obvious reasons is an issue. It is being inserted right after the GTM tags on our sites.

The inserted code is:
<div class="x-skip-links"><a class="x-skip-link" href="#x-main">Skip to content</a></div>

We need to be able to remove the Pro Theme skip link. What are the steps you suggest to help us remedy the issue.

If removing it is not an option, could we have the option to remove it from the Pro theme settings?

Hi,

You can turn off the Pro skip link with a filter. Add this to your child theme’s functions.php, or a code snippets plugin:

add_filter( 'cs_skip_links_enabled', '__return_false' );

If you use page caching, clear it afterwards. That removes the x-skip-links block completely and leaves your own header’s skip link as the only one. If you’d rather keep ours and point it somewhere else, the cs_skip_links filter lets you change its target and label instead.

There isn’t a Theme Options switch for it right now.

Thanks