# embbed site not working in wix

**URL:** <https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [September 10, 2020, 3:19pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110 "2020-09-10T15:19:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathish](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sathish/32/22709_2.png) [@sathish](https://forum.wixstudio.com/u/sathish)\
**Post date:** [September 10, 2020, 3:19pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/1 "2020-09-10T15:19:45Z")

</div>

$w( “#html1” ).src  
is not working properly

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [September 10, 2020, 3:24pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/2 "2020-09-10T15:24:31Z")

</div>

if **$w("** [**#html1**](https://www.wix.com/corvid/forum/search/~num~html1) **").src** is your entire code, so sure it’s not supposed to work.  
If you have some more code, you should post it.

---

<div class="post-metadata">

**Author:** ![sathish](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sathish/32/22709_2.png) [@sathish](https://forum.wixstudio.com/u/sathish)\
**Post date:** [September 15, 2020, 4:48am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/3 "2020-09-15T04:48:03Z")

</div>

Thank you for your reply

$w( " [#html1](https://www.wix.com/corvid/forum/search/~num~html1) " ).src =" [https://f0b620de-e294-48ef-9add-56119ec2d44c.usrfiles.com/ugd/f0b620\_3101506d88934f7386c6960da7746826.pdf?](https://f0b620de-e294-48ef-9add-56119ec2d44c.usrfiles.com/ugd/f0b620_3101506d88934f7386c6960da7746826.pdf?)"

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [September 15, 2020, 5:37am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/4 "2020-09-15T05:37:58Z")

</div>

What doesn’t work? You are embedding a PDF document in an HtmlComponent. There is no code.

---

<div class="post-metadata">

**Author:** ![sathish](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sathish/32/22709_2.png) [@sathish](https://forum.wixstudio.com/u/sathish)\
**Post date:** [September 15, 2020, 6:05am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/5 "2020-09-15T06:05:52Z")

</div>

thank you yisrael

with this reference

> **[How to Embed a PDF on a Dynamic Page - Tutorial | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/how-to-embed-a-pdf-on-a-dynamic-page-tutorial)**
>
> Hello Everyone : )
> 
> Learn how to embed a PDF when using a database collection of uploaded documents. It is fast & easy. 
> 
> Link to Tutorial site: https://codequeen.wixsite.com/embed-pdf
> Link to Video: ...

i tried to implement but at this point not working  
$w( " [#html1](https://www.wix.com/corvid/forum/search/~num~html1) " ).src =" [https://f0b620de-e294-48ef-9add-56119ec2d44c.usrfiles.com/ugd/f0b620\_3101506d88934f7386c6960da7746826.pdf?](https://f0b620de-e294-48ef-9add-56119ec2d44c.usrfiles.com/ugd/f0b620_3101506d88934f7386c6960da7746826.pdf?)"

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [September 15, 2020, 6:10am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/6 "2020-09-15T06:10:30Z")

</div>

I tried it myself, with the same pdf file link that you provided, and it works just fine.

You should contact the author of the tutorial that you linked to.

---

<div class="post-metadata">

**Author:** ![sathish](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sathish/32/22709_2.png) [@sathish](https://forum.wixstudio.com/u/sathish)\
**Post date:** [September 15, 2020, 6:11am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/7 "2020-09-15T06:11:43Z")

</div>

@yisrael-wix thanks

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [September 17, 2020, 2:20pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/8 "2020-09-17T14:20:58Z")

</div>

@sathish Thanks for watching my videos!

(Quick forum feedback)  
When you use the forum for community help, try sharing your entire code, screenshots of what your elements look like and more context (explanation) of where you are adding your code, why you added it there or what you have tried, etc.

If you only post a partial piece of a code from your page along with a message that says “this does not work”, then people will have a trouble trying to guess everything else that you did not share.

As for the code snippet you shared: it is written correctly, the syntax is correct, therefore it should work by itself. (As Yisrael has already tried.)

As for the turorial you watched, it explains how to add dynamic embeds and the code snippet you shared is not dynamic because it does not contain any variables like the example code shared in the tutorial.

So either your steps are wrong, in which case I recommend you watch the tutorial again to start from the beginning and try again…

Or you are trying to change the code to work on a non-dynamic page, in which case to modify the code you have to practice a bit more to learn how to modify it correctly, or hire someone to teach you , or hire someone to do it for you.

Happy coding!

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [September 17, 2020, 6:52pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/9 "2020-09-17T18:52:49Z")

</div>

I tried this line and it worked on my premium site and failed on my free sites.

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [September 18, 2020, 4:05pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/10 "2020-09-18T16:05:59Z")

</div>

@jonatandor35 Yikes! So now embedding is a premium thing only? Well that’s gonna suck. I won’t be able to do many tutorials. (There is no way I am upgrading a hundred tutorial sites just to make dynamic examples)

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [September 21, 2020, 12:10am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/11 "2020-09-21T00:10:45Z")

</div>

@code-queen You can embed an image or txt file on free sites. But embedding a PDF file fails for some reason.  
Maybe it’s a bug.

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [September 21, 2020, 5:43am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/12 "2020-09-21T05:43:34Z")

</div>

@jonatandor35 I’ll send this on to QA. It sounds as if it’s a bug or an infrastructure issue - there are subtle differences between Preview and Live, as well as between Free and Premium.

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [September 21, 2020, 5:48am UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/13 "2020-09-21T05:48:52Z")

</div>

@code-queen No, as far as I know embedding is not only a Premium thing. Seems to me to be a bug and I’ve sent it to QA for evaluation.

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [September 21, 2020, 2:30pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/14 "2020-09-21T14:30:44Z")

</div>

I verified that in fact embedded PDFs in an HtmlComponent are Premium only. I’m doing some further checking.

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [September 21, 2020, 5:01pm UTC](https://forum.wixstudio.com/t/embbed-site-not-working-in-wix/37110/15 "2020-09-21T17:01:23Z")

</div>

I bothered some people and the issue is that a PDF may contain code/macros which can be unsafe.

A couple of workarounds:

- PDF Viewer app (Which is not dynamic)

- Using wix code to dynamically add the PDF link to a button. (downloading instead of embedding)

The other option is to write a script that that accepts the path to a PDF (message passed from the page to the embedded script) and then displays the PDF.
