• Resolved pixelshrink

    (@pixelshrink)


    Does anyone have any tips on embedding a Youtube video so that it passes the Lighthouse accessibility test? Currently every method I’ve tried (video element, text element) comes up with the error ‘<frame> or <iframe> elements do not have a title’, including hardcoding the Iframe with a title tag (the title seems to get stripped).

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jamie

    (@codente)

    Our video module should output a title tag. Can you provide a URL where you’ve used a video module and are getting that result in Lighthouse?

    Thread Starter pixelshrink

    (@pixelshrink)

    Thanks, sure. It’s https://www.trentdementia.org.uk/video-test/ – embedded through the Video module first, and then an HTML module with a hand-coded iframe with a title which seems to get stripped.

    Plugin Contributor Jamie

    (@codente)

    I tested with your video and using your theme (Astra) and the title is there for me on my own site.

    It looks like you have an accessibility plugin installed. Can you try temporarily deactivating that as something in that plugin might be removing the title?

    If that doesn’t work, then please proceed with a full plugin conflict check by deactivating all plugins aside from Beaver Builder and see if the title remains removed. Let us know how it goes.

    Thread Starter pixelshrink

    (@pixelshrink)

    You’re right, it’s the ‘Remove title attributes inserted into post content and featured images’ in WP Accessibility plugin, thanks for your help in solving it.

    Plugin Contributor Jamie

    (@codente)

    You’re welcome @pixelshrink 🙂

    Added this as an issue on WP Accessibility. https://github.com/joedolson/wp-accessibility/issues/30.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Video embed accessibility’ is closed to new replies.