logo
logo
Sign in

Easy Ways to Use Iframe in a WordPress Site

avatar
Webnware Info Solution
Easy Ways to Use Iframe in a WordPress Site

Do you need to keep some videos in your website? If yes, then any WordPress speed optimization service provider will ask you to embed videos than upload them. This way, you save up on your website’s storage space and bandwidth, keeping your website speed intact. For this, your website needs to have iframe, which you can easily add to your website using iframe plugins.


What is Iframe and How Does it Work?

To be precise, iframe is an HTML code that helps you embed a video on your website from another site.

In this code, when you provide the URL of the video, you can view it on your web page.


However, this video will actually be played from the third-party site you took the link from. So, if you embed a YouTube video on your site, you can view it from your website but it is being loaded from YouTube only.

Not only is the code helpful in optimizing your website speed, but will also save you from copyright and infringement issues.

Yes, there is one thing you need to be careful about while using iframe – if you have an https site, make sure you embed your video from an https site only. If you don’t have the SSL certificate, you can embed videos from an http site only.


Now if you don’t understand HTML codes, it’s OK. You don’t have to add this manually – there are easier ways of adding this.


Let’s see how.

Adding Iframe from the Third-Party Sites

If you’re adding your video from a popular site like YouTube and Facebook, it’s actually very easy to embed it t your site. You’ll get the iframe code from there only – you won’t have to do anything but copy-paste it.


Here’s how it will work:

 You click on the “Share button” and then click on “Embed”.

 Just copy-paste the code you get into your web page backend and you’re done.

 If you want, you can change certain parameters here such as height, width, allow, and other features.

Using Iframe Plugins Not all websites will provide you with embedding options. Even if they do, you might not get an iframe code. So, in that case it might be better to have an iframe plugin.


There are 2 ways of using the plugin:

Method 1 – Work with the Short Code once your plugin is installed, you’ll get a button called “Add Advanced iFrame” on the backend of every web page. You click on it wherever you want the video to be placed. Once you click on that button,you’ll find a code on the page.


Now from here, you work on the following parameters:

 SRC (URL)

 Width

 Height

 Scrolling

 Frameborder

 Margin Height

 Margin Width

 Allow transparency


Method 2: Using the UI of the Plugin From the main settings of your WordPress dashboard, you’ll find the option of “Advanced iFrame”.

Here, you go to “Basic Settings” and work on the same parameters which will be displayed in a form format. Then, you generate the short code and copy-paste it wherever you want the video.

To Sum it Up

If you show a lot of videos to your viewers, using iframe plugins is a much better option than uploading videos. If you aren’t using iframe yet, you might require WordPress speed optimization service.

collect
0
avatar
Webnware Info Solution
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more