Title: Aria Attributes
Last modified: March 3, 2020

---

# Aria Attributes

 *  [julesmeredith](https://wordpress.org/support/users/julesmeredith/)
 * (@julesmeredith)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/aria-attributes/)
 * I am currently trying to make our website compliant with WCAG 2.1 guidelines.
   At present the “Contents [show/hide]” does not have any Aria attributes and as
   such flagged as a fail.
 * Is it possible to edit the TOC+ plugin php so that the following rendered html:-
 * `<span class="toc_toggle">[<a href="#">hide</a>]</span>`
 * would become –
 *     ```
       <span class="toc_toggle">[<a href="#" aria-haspopup="true" aria-expanded="true" 
       >hide</a>]</span>
       ```
   
 * and
 * `<span class="toc_toggle">[<a href="#">show</a>]</span>`
 * would become –
 *     ```
       <span class="toc_toggle">[<a href="#" aria-haspopup="true" aria-expanded="false" 
       >hide</a>]</span>
       ```
   
 * Thanks in advance for any help offered on this.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Faria-attributes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Aria Attributes’ is closed to new replies.

 * ![](https://ps.w.org/table-of-contents-plus/assets/icon-256x256.png?rev=1151771)
 * [Table of Contents Plus](https://wordpress.org/plugins/table-of-contents-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/table-of-contents-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/table-of-contents-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/table-of-contents-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/table-of-contents-plus/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [julesmeredith](https://wordpress.org/support/users/julesmeredith/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/aria-attributes/)
 * Status: not resolved