{"id":8049,"date":"2026-05-08T14:03:25","date_gmt":"2026-05-08T12:03:25","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8049"},"modified":"2026-05-08T14:03:26","modified_gmt":"2026-05-08T12:03:26","slug":"how-to-add-youtube-and-vimeo-videos-to-wordpress","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/","title":{"rendered":"How to Add YouTube and Vimeo Videos to WordPress"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">Integrating video content into your <strong>mybox-hosted<\/strong> WordPress site is one of the best ways to increase visitor engagement and keep people on your pages longer. In 2026, the process is largely automated, requiring no coding knowledge to create a professional multimedia experience.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/#Why_You_Should_Always_Embed_Not_Upload\" >Why You Should Always Embed (Not Upload)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/#Method_1_The_oEmbed_URL_Paste_Easiest\" >Method 1: The oEmbed URL Paste (Easiest)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/#Method_2_Using_Dedicated_Blocks\" >Method 2: Using Dedicated Blocks<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/#Method_3_Using_iFrame_Embed_Codes_For_Advanced_Control\" >Method 3: Using iFrame Embed Codes (For Advanced Control)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/#Advanced_Video_Performance_Tips\" >Advanced Video Performance Tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/how-to-add-youtube-and-vimeo-videos-to-wordpress\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_You_Should_Always_Embed_Not_Upload\"><\/span>Why You Should Always Embed (Not Upload)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">While you <em>can<\/em> upload videos directly to your Media Library, it is a mechanical necessity to avoid this for large files.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Performance:<\/strong> Video files are huge. Self-hosting them can slow down your site and consume significant bandwidth.<\/li>\n\n\n\n<li><strong>User Experience:<\/strong> Platforms like YouTube and Vimeo use &#8220;Adaptive Bitrate Streaming,&#8221; which automatically changes video quality based on the visitor\u2019s internet speed.<\/li>\n\n\n\n<li><strong>Storage:<\/strong> Using an external host keeps your <strong>mybox<\/strong> storage space free for essential website files and databases.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_The_oEmbed_URL_Paste_Easiest\"><\/span>Method 1: The oEmbed URL Paste (Easiest)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<\/div>\n\n<div id=\"mybox-2799637835\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">WordPress uses a technology called oEmbed, which allows the editor to recognize links from popular platforms automatically.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Copy the Link:<\/strong> Go to your video on YouTube or Vimeo and copy the URL from the browser&#8217;s address bar.<\/li>\n\n\n\n<li><strong>Paste Directly:<\/strong> In the WordPress Block Editor, simply paste the link onto a new, empty line.<\/li>\n\n\n\n<li><strong>Automatic Transformation:<\/strong> WordPress will instantly fetch the video and transform the plain text link into a fully functional video player.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Using_Dedicated_Blocks\"><\/span>Method 2: Using Dedicated Blocks<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For a more structured approach or additional settings, use the specific blocks provided by the editor.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Click the <strong>(+) icon<\/strong> to add a new block.<\/li>\n\n\n\n<li>Search for <strong>&#8220;YouTube&#8221;<\/strong> or <strong>&#8220;Vimeo&#8221;<\/strong>.<\/li>\n\n\n\n<li>Select the corresponding block and paste your URL into the field.<\/li>\n\n\n\n<li><strong>Configuration:<\/strong> In the right-hand sidebar, you can often adjust alignment or add a caption directly below the video.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Using_iFrame_Embed_Codes_For_Advanced_Control\"><\/span>Method 3: Using iFrame Embed Codes (For Advanced Control)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you need specific features like starting a video at a certain time or hiding player controls, use the iFrame method.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Get the Code:<\/strong> On YouTube, click <strong>Share > Embed<\/strong>. On Vimeo, click the <strong>Paper Plane icon<\/strong> and copy the embed code.<\/li>\n\n\n\n<li><strong>Custom HTML Block:<\/strong> In WordPress, add a <strong>Custom HTML<\/strong> block.<\/li>\n\n\n\n<li><strong>Paste and Preview:<\/strong> Paste the code into the block. You can click &#8220;Preview&#8221; within the block to see how it looks before publishing.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Advanced_Video_Performance_Tips\"><\/span>Advanced Video Performance Tips<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To maintain the high-speed standard of your <strong>mybox-hosted<\/strong> site, consider these optimization strategies:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lazy Loading:<\/strong> Use a plugin like <em>WP YouTube Lyte<\/em> or <em>Presto Player<\/em>. These tools replace the &#8220;heavy&#8221; video player with a static thumbnail image, only loading the actual video scripts when a user clicks &#8220;Play.&#8221;<\/li>\n\n\n\n<li><strong>Poster Images:<\/strong> When using the native Video block for smaller clips, always set a &#8220;Poster Image&#8221; (thumbnail) in the block settings. This prevents a black box from appearing while the video is loading.<\/li>\n\n\n\n<li><strong>Privacy-Enhanced Mode:<\/strong> When grabbing a YouTube embed code, check the &#8220;Enable privacy-enhanced mode&#8221; box. This helps with GDPR compliance by preventing YouTube from storing cookies about your visitors unless they play the video.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you are pasting a simple link or using advanced iFrame configurations, adding video to your <strong>mybox-hosted<\/strong> WordPress site has never been easier. By hosting your content on external platforms and embedding it correctly, you provide a high-quality, fast-loading experience that boosts your SEO and satisfies your audience.<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58,60],"manual_kb_tag":[190,705,3243,8627,8628,8629,8630,8631,8632,8633],"class_list":["post-8049","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manualknowledgebasecat-wordpress-plugins","manual_kb_tag-wordpress","manual_kb_tag-wordpress-hosting","manual_kb_tag-embed-video","manual_kb_tag-wordpress-video","manual_kb_tag-video-embedding","manual_kb_tag-youtube","manual_kb_tag-vimeo","manual_kb_tag-oembed","manual_kb_tag-iframe-embed","manual_kb_tag-video-optimization"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8049\/revisions"}],"predecessor-version":[{"id":8050,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/8049\/revisions\/8050"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=8049"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8049"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=8049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}