northamrealty
-
Posts
6 -
Joined
-
Last visited
Reputation Activity
-
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.
-
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.
-
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
-
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.