How to add data-* attribute to element?

Hi guys, need a hand with a small question, Google Search Console is suggesting I add a description field to a video on my website.

I know what video it is referring to:

A video that is embedded through an iframe (it streams from a CDN):

I have found the element in my site where I think I should be adding that description field:

image

But I’m having a hard time figuring out how to actually add it, can you point me in the right direction how to do this?

Video explanation in case it’s still not clear:

Thanks!

That ‘Structured Content’ is coming from Iframe. So it can’t be changed from Divhunts side.

Inside of that iframe you can find this, but I am not sure if you can’t edit it.
Anyway, it’s just a warning, not an error, so it will not have any impact on SEO as of my knowledge

1 Like

Thank you very much, that pointed me in the right direction. I was able to add to the description via the CDN, I thought this was something that I was supposed to do on the site itself.

Since we are on the topic, is there a way to add custom metadata in general, to other html elements in Divhunt? Like for a regular mp4 video that is not in an iFrame, or any other element, if need be?

I’m not a Divhunt dev, but when alt text gets added to an image, within the element’s attributes (Advance>Attributes), a line gets added with the key=alt and then whatever description you want. Is that helpful?

1 Like

Yes it is, thank you! I extrapolate from that that whenever I want to add a meta tag / data attribute to any element that I can do that there. Appreciate the help @Marc.

1 Like

My pleasure! I hope it works correctly for your use-case!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.