Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 762 Bytes

skip_link.md

File metadata and controls

22 lines (15 loc) · 762 Bytes

Skip Link

{% include 'wagtailnhsukfrontend/skip_link.html' %}
Option Description Default
text Title to display for the link Skip to main content
href The href tag for the skip link #maincontent

To ensure that the skip link works as intended make sure its the first include in the template. You can also pass the two options above using with after the include tag.

{% include 'wagtailnhsukfrontend/skip_link.html' with  href="#demo" text="Demo Text"%}

Reference