Support for HTML5 Youtube Videos (iFrame) in WordPress

WordPress 3.x will automatically remove iFrame tags when you switch between HTML and Visual mode.

In order to prevent that issue, simply install TSL iframe unfilter plugin.This will fix the issue of Youtube iframe embedded code disappearing or any other iframe code you’ve got.

To automatically center Youtube videos using the iframe embedded code (supporting for flash and HTML5), edit style.css in Appearance->Editor, and add the lines

/* Align iFrame Youtube Videos */
.youtube-player { display: block; margin: 0 auto; }

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
2 Comments
oldest
newest
Boardcon Rockchip and Allwinner SoM and SBC products