Title: iFrame title missing &#8211; Instagram embed
Last modified: June 2, 2023

---

# iFrame title missing – Instagram embed

 *  [lydia22](https://wordpress.org/support/users/lydia22/)
 * (@lydia22)
 * [3 years ago](https://wordpress.org/support/topic/iframe-title-missing-instagram-embed/)
 * Hello,
 * Google Page Speed Insights is signalling an accessibility issue regarding missing
   iFrame titles, while embedding Instagram posts.
 * It is needed for websites to confirm with these AT recommendations. See: [https://dequeuniversity.com/rules/axe/4.4/frame-title](https://dequeuniversity.com/rules/axe/4.4/frame-title)
 * I also noticed this request: [https://wordpress.org/support/topic/missing-iframe-titles-accessibility/](https://wordpress.org/support/topic/missing-iframe-titles-accessibility/)
 * Could this please be fixed? That would be much appreciated!
 * Thanks,
 * Lydia
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fiframe-title-missing-instagram-embed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years ago](https://wordpress.org/support/topic/iframe-title-missing-instagram-embed/#post-16791665)
 * How did you embed your Instagram posts? How that was accomplished influences 
   what might be possible for resolution.
 * For example, if you just placed a link into post content and it turned into an
   embed automatically, you relied upon oEmbed to get the embed code. oEmbed content
   can be filtered through the ‘oembed_result’ hook. A title attribute could be 
   inserted this way.
 * I’m unsure what would be used for a title value though. “Instagram image” isn’t
   very helpful. Something better would need to already exist somewhere in the HTML
   being filtered, such as an aria-label value or something.
 *  Thread Starter [lydia22](https://wordpress.org/support/users/lydia22/)
 * (@lydia22)
 * [3 years ago](https://wordpress.org/support/topic/iframe-title-missing-instagram-embed/#post-16794154)
 * Thanks for your reply.
 * I have used the html block of WordPress to include the code of the Instagram 
   posts. This code can be found on each Instagram post: click on the 3 dots in 
   the right corner above the post, than click on include, copy the code and paste
   this in the html block in Word Press.
 * This is a great way since it doesn’t require any third party plugins.
 * It is possible to include also the information of the post in this code. Maybe
   in this code, there are words that can be used to create a title value?
 * I only get this notice regarding Instagram posts, not when I embed YouTube video’s.
   How are these video’s given a proper title value? Could this be applied to the
   Instagram posts as well?
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years ago](https://wordpress.org/support/topic/iframe-title-missing-instagram-embed/#post-16795395)
 * It looks like the iframe HTML is injected by script from instagram.com/embed.
   js. So the onus is upon Instagram to provide a title attribute in the HTML they
   are injecting. Aside from pleading with Instagram to fix their embed HTML, your
   only other option would be to add your own script that inserts a title attribute.
   The key to your script would be it must only run after the embed.js script has
   already injected the HTML. I’m not much of a JavaScript coder, TBH I’m not sure
   how your script would ensure it only runs after the Instagram injection.
 * Other embed blocks like YouTube rely upon oEmbed to get appropriate HTML content.
   It’s up to the remote oEmbed server to provide proper HTML (which it apparently
   does), but we do have an opportunity to alter the HTML before it’s output. When
   the HTML is injected via embed.js instead, there is no such opportunity, the 
   HTML can only be altered by other scripts after it had been injected.
 *  Thread Starter [lydia22](https://wordpress.org/support/users/lydia22/)
 * (@lydia22)
 * [3 years ago](https://wordpress.org/support/topic/iframe-title-missing-instagram-embed/#post-16796840)
 * Thanks for your reply.
 * I am currently on vacation and should not work ;-). I will look into this when
   I start working again next Monday 12 June.
 * There are still too many issues with Accessibility Technology, on my website 
   there are already 4 issues that I cannot solve, and they should be solved by 
   the parties that are responsible for this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘iFrame title missing – Instagram embed’ is closed to new replies.

 * In: [Accessibility](https://wordpress.org/support/forum/accessibility/)
 * 4 replies
 * 2 participants
 * Last reply from: [lydia22](https://wordpress.org/support/users/lydia22/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/iframe-title-missing-instagram-embed/#post-16796840)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
