Embedded contents (html, iframe, video, chats)
-
Good day to all,
I hope you are safe and well.
Currently testing the plugin, it seems so great, thank you for your work!My question/problem is to embedded custom html both in the main “Default More Info” and “hotspots areas> description” boxes. I tried to embark iframes from chats plugins, videos, forms, live streams and podcasts but they don’t appear.
Exemple: <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/wwNZKfBLAsc” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>
(supposedly, the displayed results erases my divs, it’s kind of translated in <p> and delete the whole content)
I wish you a great day,
cheers from France,
Antoine
-
Hello @antoinedme !
WordPress automatically filters out iframe code. If you really want to use iframe to embed, you could try activating the iframe plugin. You’d have to use the plugins shortcode syntax for embedding the iframe.
https://wordpress.org/plugins/iframe/
Although, for Youtube videos, the iframe code is unnecessary you should be able to just paste the Youtube URL or use the embed shortcode to display the video.
Could you try just pasting in the URL to the Youtube video in Draw Attention text boxes? If that doesn’t work, could you also try using the embed shortcode to include the video?
https://codex.wordpress.org/Embed_Shortcode
Let me know if that helps,
Natalie GHello Natalie,
thank you for your answer, a great help!
I successfully embedded a video using the shortcode.
Example: [embed width="500"]https://www.youtube.com/watch?v=XSGBVzeBUbk[/embed]I will also be looking at shortcodes options (audio, gallery of images…)
Examples: [audio src="audio-source.mp3"], [gallery ids="729,732,731,720"]I will try further with the iframe plugin as well.
Cheers,
Antoine
The topic ‘Embedded contents (html, iframe, video, chats)’ is closed to new replies.