Unable to add an iframe in a Custom HTML box
-
Hi,
I am trying to add an iframe panel to my home page which leads to an appointment bookings website.
When i add a custom HTML section and paste the iframe code in there, it does not save on the page(even though it looks like it did).WP.com: Yes
Jetpack: No
Correct account: YesThe blog I need help with is: (visible only to logged in users)
-
Nvm, found this page which explains why.
https://wordpress.com/support/code/
iframes are blocked because of “Security Reasons”.
The exact security reason being “We want you to pay us more money”.
-
Hi there,
The exact security reason being “We want you to pay us more money”.
On sites that are on the Premium, Personal and Free plans, due to the structure of the system, we have to be careful on what code is allowed. iframes can be a security issue, and that could affect a lot of sites. On the Business or eCommerce plans, the sites are on a different structure, so code such as iframes, JavaScript and such can be used.
If you can let us know what the code is for, perhaps we can come up with some workarounds or alternatives for you.
-
this really sux especially when wp.com doesn’t say it is blocking iframes – have wasted hours and hours on this!!!!!
-
@dyllos you find all info in our extensive documentation. If you search for ‘Custom HTML Block’ you get all information you need, including the fact iframes aren’t supported – https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/
-
that isn’t useful at all – like OP says it looks like it is going to work with the preview being positive but then it just doesn’t – why not put a helpful error message with a link to the material you’re referencing?
-
-
Not usefull at all? Excuse me but the first you see when you go to that page “For security reasons, not all HTML tags are allowed in the Custom HTML block. Please check the list of supported HTML tags for the ones you can use.”
When you scroll down the page it’s very clearly stated “For security reasons, the following tags are only allowed on plugin-enabled sites:
embed, frame, iframe, form, input, object, textarea, style, link“ -
Just search in our documentation for Google Docs and again you get it served on a plate, https://wordpress.com/support/google-docs/
-
-
- The topic ‘Unable to add an iframe in a Custom HTML box’ is closed to new replies.