![]() It will prevent the video from being any larger than what you define, but it could possibly display smaller. ![]() Remember: These are maximum dimensions, not exact.Just add the following code into your post edit screen:Īdd your YouTube URL where it says “YOUTUBE URL GOES HERE,” and change the width & height parameters to fit your needs. The shortcode works in both Visual and Text mode, and has two optional parameters: If you’d like to set a maximum width or height on your video, you can use the embed shortcode. Learn more about WordPress oEmbeds » 02 Embed YouTube Video in WordPress using a shortcode This works because of a technology called oEmbed. There are other types of content you can insert into WordPress just by pasting the URL in your post screen. Or use the full URL in your browser’s location bar: You can also use the full YouTube watch URL You can use the shortened, share URL: How to get the YouTube share URL Then just paste the YouTube URL on it’s own line. Make sure you’re in “Visual” mode, not “Text” mode Make sure you’re using the Visual editor, and not in Text mode. The easiest way to embed YouTube videos in WordPress is to simply paste the URL onto your page/post edit screen. 01 Easiest Way to Embed a YouTube Video in WordPress
0 Comments
Leave a Reply. |