Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#56722 closed defect (bug) (invalid)

Using SkipLink on my site

Reported by: jthomas2's profile jthomas2 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: accessibility Cc:

Description

I'm trying to make my site 508 accessible by adding skiplinks to go to main content. I've created a child them and was trying to use the code WordPress Community provided:

<body>
<header>
<a class=”screen-reader-text skip-link” href="#content">Skip to content</a>
<h1>Site title</h1>
</header>
  <nav>
    <ul>
      <li><a href="/">Home</a></li>
      <li><a href="/accessibility">Accessibility</a></li>
      <li><a href="/blog">Blog</a></li>
    </ul>
  </nav>
  <main id="content">
    <!-- Content of the page --> 
  </main>
</body>

I'm getting a syntax error"syntax error, unexpected token "<", expecting end of file". Can I get help to make this work? Really don't want to have to pay for a plugin.

Change History (2)

This ticket was mentioned in Slack in #accessibility by sabernhardt. View the logs.


3 years ago

#2 @costdev
3 years ago

  • Component changed from Editor to General
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed
  • Version 6.0.2 deleted

Hi @jthomas2, welcome to Trac!

Trac is for the development of WordPress Core, whereas you'll need support. Head on over to the support forums to get help from the great folks there.

I'll close this ticket as invalid, but not because your issue is invalid. It's the keyword we use when there is no further action we can take here on Trac.

Best of luck!

Note: See TracTickets for help on using tickets.