Jump to content

northamrealty

Member
  • Posts

    6
  • Joined

  • Last visited

Reputation Activity

  1. Like
    northamrealty got a reaction from tcp13 in Skip Link in Header for Web Content Accessibility Guidelines   
    Again @tcp13, you rock! Thank you for all your help.
  2. Like
    northamrealty reacted to tcp13 in Skip Link in Header for Web Content Accessibility Guidelines   
    Ah, sorry about that @northamrealty! It appears your homepage has a different selector since it's an Index Page. Try modifying it one more time to target .Content-outer instead of .Index
    <!--Skip Link--> <script> $(document).ready(function(){$("body").prepend('<a href="javascript:skipTrigger();" class="skip-link" tabindex="0">Skip to Content</a>');}); function skipTrigger(){$(".Content-outer").attr("tabindex", "-1").focus();} </script> That should work on every page within your template (include the homepage too). Feel free to DM me if you encounter any other issues.
  3. Like
    northamrealty reacted to tcp13 in Skip Link in Header for Web Content Accessibility Guidelines   
    Hey there @northamrealty,
    It's actually a different target element for your template. Use the same code as above, but swap out this section with the following:
    <!--Skip Link--> <script> $(document).ready(function(){$("body").prepend('<a href="javascript:skipTrigger();" class="skip-link" tabindex="0">Skip to Content</a>');}); function skipTrigger(){$(".Index").attr("tabindex", "-1").focus();} </script> Hope this helps!
    -Tyler
  4. Like
    northamrealty got a reaction from tcp13 in Skip Link in Header for Web Content Accessibility Guidelines   
    @tcp13 You're my hero! Thank you so much.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.