Title: Link Question
Last modified: November 1, 2025

---

# Link Question

 *  Resolved [isay81](https://wordpress.org/support/users/isay81/)
 * (@isay81)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/link-question-6/)
 * It is really common to have a Menu “Placeholder” page. Useful for top-level menu
   item – don’t go anywhere when menu item is clicked.
 * Then to have the other child pages under it.
 * This is giving this error:
 * Improper Use of Link error
 * This element is an anchor tag missing a valid `href` attribute or is linked to`#`
   without having `role="button"`.
 * How to fix it:
 * If the element is used to trigger an action, replace the anchor tag with a `<
   button>`. If you cannot replace it, ensure that `role="button"` is added to the
   link, along with JavaScript that adds support for triggering it with the space
   bar key, and that appropriate ARIA attributes are used for toggle states or other
   functionality.
 * How do I implement this fix if it is a placeholder Parent page?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-question-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [williampatton](https://wordpress.org/support/users/williampatton/)
 * (@williampatton)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/link-question-6/#post-18705081)
 * Hi [@isay81](https://wordpress.org/support/users/isay81/),
   Sorry that your running
   into troubles with this. It is very unfortunate that many themes or builders 
   don’t produce accessible menus by default for things like this 🙁
 * A link ethat doesn’t take anyone anywhere is a difficult thing for a non-sighted
   user to understand because their screen reader will read out that it’s a link.
 * The ideal solution for this to to make the dropdown opener a button rather than
   a link. Using an actual `<button>` element would be best, but alternatively, 
   swapping the role and adding handling for the spacebar would work too.
 * In either case you would need to add some aria, like `aria-expanded` to tell 
   screen readers and other assistive tech the state of the dropdown when it is 
   opened or closed.
 * Fixing this likely requires some code changes or code additions to handle if 
   your theme or builder doesn’t provide the means to do it.
 * Since this isn’t an issue with the plugin I will mark the thread as resolved 
   but that doesn’t mean we won’t continue to help. If you need any additional help
   with this feel free to reply here and I will get back to you with help as soon
   as I am able.
    -  This reply was modified 5 months, 2 weeks ago by [williampatton](https://wordpress.org/support/users/williampatton/).

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-question-6%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/accessibility-checker/assets/icon-256x256.png?rev=3094626)
 * [Equalize Digital Accessibility Checker - WCAG, ADA, EAA and Section 508 compliance](https://wordpress.org/plugins/accessibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accessibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accessibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/accessibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accessibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accessibility-checker/reviews/)

## Tags

 * [ADA Compliance](https://wordpress.org/support/topic-tag/ada-compliance/)

 * 1 reply
 * 2 participants
 * Last reply from: [williampatton](https://wordpress.org/support/users/williampatton/)
 * Last activity: [5 months, 2 weeks ago](https://wordpress.org/support/topic/link-question-6/#post-18705081)
 * Status: resolved