Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    More of a workaround than a fix. Paste the desired YT URL on its own into a custom HTML block. The oEmbed process will generate an iframe with title. Some additional CSS may be needed to size and position the iframe on the page.

    Agree, if only few videos are there. The site is going to have a lot of videos & i don’t want content authors to worry about tech stuff.

    Moderator bcworkz

    (@bcworkz)

    It’d be feasible to create a custom embed block that does include the title attribute. Then hide the default YT block with CSS so authors would intuitively use the custom block instead.

    If you think the default block should have a title attribute, you could raise an issue at the Gutenberg project’s Github site. It could take quite a while before any particular issue is addressed.

    i believe there is a ticket addressing this. for now i am adding title attribute on iframe manually in the embed code itself. Would appreciate if there is a function to do this.

    Moderator bcworkz

    (@bcworkz)

    The function would need to be able to get the title from somewhere. I double checked the YT block’s output to see if it was at all available. The iframe now appears to include a title attribute! I know it wasn’t there the last time I checked.

    • This reply was modified 3 years, 3 months ago by bcworkz.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘YouTube embed Iframes do not have title attribute & fail accessibility’ is closed to new replies.