Ayour site embeds many videos it keeps load times down without significantly impacting user experience. iframe wordpress plugin lazy load How to Embed an Iframe in WordPress Without a Plugin If youre comfortable with HTML you dont need a plugin to place iframes in WordPress. The process is straightforward and some websites will even produce the embed code for you. Embed an Iframe in WordPress With Embed Code If you want to embed content from a popular website like YouTube Facebook or Google Maps theres a good chance it can generate embed code. So you just need to copy this code and paste it into your site through.
As a common example heres how to embed a YouTube video with this method 1. Go to the page for the YouTube video you want to embed. 2. Under the video click Share. a youtube video with the share button circled 3. Choose the Embed option from the popup. 4. Select your embed options then click Copy Digital Marketing Service to copy the embed code to your clipboard. youtubes embed options panel 5. How you add your iframe to a page or post in WordPress depends on your editor. If you use the block editor add a Custom HTML block then paste your copied iframe code into the blocks text area.
Block in wordpress containing iframe code If you use the classic editor switch to text editing mode and paste in your embed code. the classic text editor in wordpress containing iframe code 6. Preview your post to see your embedded video in all its glory. a mock wordpress post with an embedded youtube video Embed an Iframe in WordPress Manually You can also create an HTML iframe yourself and put it in a WordPress page or post. Heres how 1. In your WordPress pagepost editor open the Custom HTML option. In the block editor do this by adding a Custom HTML block. In the classic editor click the Text tab in the top right corner of the content area.