Why can’t you embed an iframe in WordPress?
-
I have a very basic scenario, where I’d like to embed into my blog the ability to preview code then run it in a new tab conveniently to play with the code.
The embedding works by inserting a Custom Html element on the WordPress page that would point to the location of the code on repl.it.
The iframed code editor would in no way interact with the WordPress website given that they are on separate domains. Also, with new security improvements to iframes, WordPress should be able to support this functionality securely.
In other words, being able to insert this iframe is a key use case for my blog. My only choice now might be to move to a different platform.
The blog I need help with is: (visible only to logged in users)
-
Hi there, iframes in general aren’t viable for sites that are free, on the Personal, or Premium plans, but you can use iframes on Business plan sites with plugins installed:
https://en.support.wordpress.com/code/That said, we do have a CodePen embed in case that can be useful for you:
https://wordpress.com/support/codepen-embeds/As it is, I passed on your message as a feature request, in case it’s something that the team can implement in the future. If you have any other questions, please do let us know!
- The topic ‘Why can’t you embed an iframe in WordPress?’ is closed to new replies.