Include Your Own Skip Links

Robert Windisch edited this page Jul 25, 2015 · 1 revision

In Xtreme One you have the following Skip-Links:

<ul>
	<li>#content – to content area</li>
	<li>#primarynav – this Skip-Link will only display if a primary navigation exists</li>
	<li>#secondarynav – this Skip-Link will only display if a secondary navigation exists</li>
	<li>#content – in footer skip to top of page</li>
</ul>

If you would like to add one or more Skip-Links to the list, you can use the hook xtreme_add_skip_link. You have to write this little function in your functions.php of your Childtheme:

function abc_skiplink() {
    ?>
<li><a href="#your_ancor">Jump to Sidebar (Press Enter)</a></li>
    <?php
}
add_action('xtreme_add_skip_link', 'abc_skiplink');

Important: The list element has the class skip.

Deutsch / German

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.