Support » Plugin: The Events Calendar » Accessibility Issues

  • SprialOwner

    (@sprialowner)


    Hi there! I had an accessibility audit and I am trying to add unique aria-label, aria-labellby or titles to make landmarks distinguishable.

    Currently, the landmarks for February and April are not unique.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Camwyn

    (@camwynsp)

    Hey SpiralOwner!

    I assume you are talking about the prev/next month links at the top of the calendar?

    If so, you can do so via template customization:

    For the month view look for this file: wp-content/plugins/the-events-calendar/src/views/month/nav.php

    copy it to [your-theme]/tribe-events/month/nav.php

    and add the desired aria attributes or any needed HTML.

    If you need the text “February” for those you can use the functions tribe_get_previous_month_text() and tribe_get_next_month_text()

    There’s a ton of info on template customization here: https://theeventscalendar.com/knowledgebase/guide/customization/#customizing-templates

    Cheers,
    Stephen

    Thread Starter SprialOwner

    (@sprialowner)

    Hi there! I am not a developer but have hired one to help me make this change. I gave him these exact directions but he was puzzled and couldn’t find what he needed.

    He only found one single aria tag in the wp-content/plugins/the-events-calendar/src/views/month/nav.php, nothing specific to the months. I had him open a different file only to have him stumble upon 2,000+ aria tags. Are you sure that is the proper file?

    Thanks,
    Kathy

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.