# HTML iFrame help!

**URL:** <https://forum.wixstudio.com/t/html-iframe-help/41715>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [May 22, 2018, 1:21am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715 "2018-05-22T01:21:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gevanssfe](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gevanssfe](https://forum.wixstudio.com/u/gevanssfe)\
**Post date:** [May 22, 2018, 1:21am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715/1 "2018-05-22T01:21:27Z")

</div>

looking to add a few iFrames (widgets / search bars) from 3rd party sites.

The search bar iFrame works fine …

However.. the widgets are not working at all. The code im adding is as follows:

iFrame #1

\< if rame src="https:// if rame.thailandholidayhomes.com/ \*\*in\*\* dex.php?agent\_id=An-Opulent-Collection-" width="100%" height="1809" frameBorder="0" name="thh" scroll \*\*in\*\* g="no"\> 

iFrame #2

iFrame #3

Any ideas or maybe use of a different way of adding these to the wix site would be appreciated.

Many thanks  
Gareth

---

<div class="post-metadata">

**Author:** ![andreas-kviby](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/andreas-kviby/32/790_2.png) [@andreas-kviby](https://forum.wixstudio.com/u/andreas-kviby)\
**Post date:** [May 22, 2018, 8:33am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715/2 "2018-05-22T08:33:40Z")

</div>

Iframe 2 & 3 seem to hold code that the other iframes need, correct? In that case you need to include those in the same html component as the iframes itself. Try that.

---

<div class="post-metadata">

**Author:** ![yevhen-pavliuk](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yevhen-pavliuk/32/1053_2.png) [@yevhen-pavliuk](https://forum.wixstudio.com/u/yevhen-pavliuk)\
**Post date:** [May 22, 2018, 11:51am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715/3 "2018-05-22T11:51:14Z")

</div>

Hi Gareth,

> iFrame #1

> 

This one doesn’t work because even through you use an HTTPS URL for the iframe, the server redirects to HTTP. HTTP resources are blocked by security policy.

> iFrame #2

> 

> iFrame #3

> 

These two do work but you need to wrap them in a **body** or **div** tag. For instance:

Without wrapping it, the script is placed inside the **head** tag and, when it executes, all the dynamic elements it adds to the page are added to the **head** tag and thus they are not shown.

Regards,  
Yevhen

---

<div class="post-metadata">

**Author:** ![gevanssfe](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gevanssfe](https://forum.wixstudio.com/u/gevanssfe)\
**Post date:** [May 23, 2018, 1:49am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715/4 "2018-05-23T01:49:57Z")

</div>

Hi Yevhen

Working great… code was never my strong point!! Cheers! G

---

<div class="post-metadata">

**Author:** ![yevhen-pavliuk](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yevhen-pavliuk/32/1053_2.png) [@yevhen-pavliuk](https://forum.wixstudio.com/u/yevhen-pavliuk)\
**Post date:** [May 23, 2018, 6:31am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715/5 "2018-05-23T06:31:58Z")

</div>

You’re welcome!

---

<div class="post-metadata">

**Author:** ![faithboluwatife03](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/faithboluwatife03/32/14061_2.png) [@faithboluwatife03](https://forum.wixstudio.com/u/faithboluwatife03)\
**Post date:** [August 19, 2019, 11:00am UTC](https://forum.wixstudio.com/t/html-iframe-help/41715/6 "2019-08-19T11:00:45Z")

</div>

I added an html code to my site but it wasn’t display the ads.I used the html I frame tool
