YouTube embed
-
Why isn’t the classic editor available anymore? I could change the dimensions of YouTube videos embedded on my blog easily simply by getting the embed code from YT and changing width and height. Can you tell me how to do it now?
The blog I need help with is: (visible only to logged in users)
-
Hi there, yes, the editor change makes this feel less direct if you were used to editing the YouTube embed code by hand.
For most YouTube videos now, use the YouTube block instead, paste the YouTube URL on its own line, or add a YouTube block and paste the URL there. Once the video is embedded, click the block and use the block toolbar to adjust its alignment or width. In the block settings sidebar, I’d keep “Resize for smaller devices” turned on so the video keeps its proportions on phones and tablets.
YouTube block guide is here:
https://wordpress.com/support/wordpress-editor/blocks/youtube-block/#youtube-block-toolbarIf you specifically want the old-style iframe method, add a Custom HTML block, paste the YouTube embed code from YouTube, and edit the width and height values in that code before saving.
If the iframe disappears or gets partly removed after saving, that is usually because of WordPress.com’s custom-code restrictions for that site/plan. In that case, the safer route is the YouTube block rather than raw iframe code.