WordPress.org

Ready to get started?Download WordPress

Forums

Permanent solution to allow iframe video embeds (2 posts)

  1. modifiedcontent
    Member
    Posted 6 months ago #

    I need an idiot-proof, permanent solution to prevent video embed iframes from getting stripped out.

    The plugins that are supposed to solve this are useless for syndicated content and many other cases.

    Is there no way to allow iframes from a list of trusted sources; vimeo, youtube.com, kickstarter.com, etc.?

    Not another plugin, but a piece of code you can add to functions.php and can edit/expand as needed?

    Nothing I have tried so far works 100%. I keep losing content that I have to manually restore.

  2. Pioneer Valley Web Design
    Member
    Posted 6 months ago #

    I have used iframes from varying sources and never had an iframe stipped out of a post or page. Your theme or a plugin is most likely causing this.

    Does it happen with default theme and all plugins deactivated?

    I can answer that as a NO, as I use WP3.8 and default themes in multiple sites, again, no issues with this.

    So test as noted and discover which is causing the issue.

    Additionally, you could disable the Visual Editor. Code is stripped in the Visual Editor, so either disabling the Visual Editor or simply always staying in the HTML Editor (Do not switch to Visual Editor) will allow that your HTML is not stipped.

    Above assumes when you paste the video embed code in your post or page that you are doing so in the HTML Editor. Do not do so in the Visual Editor.

Reply

You must log in to post.

About this Topic