<p>Use a text field (not rich text).  Then in the output, add "raw" to avoid it stripping any HTML tags.  </p>

<pre><code>{{ entry.field | raw }}
</code></pre>

CC BY-SA 3.0
2017-03-20T03:37:06.350Z
2017-03-20T03:37:06.350Z
Todd
<p>How can I embed an iframe on my site? I tried pasting the iframe code in the HTML section and it didn't appear. </p>

CC BY-SA 3.0
2017-03-10T18:41:06.497Z
Can you provide more details for what you're trying to accomplish? Are you pasting the HTML into a template, or as a field value? As it currently stands, this question doesn't appear to be Craft-specific.
Lindsey D
CC BY-SA 4.0
2019-07-24T15:49:36.300Z
Hi I'm having similar problems - I want to embed a podcast from Transistor.FM <iframe src='https://share.transistor.fm/e/8a1ae567' width='100%' height='180' frameborder='0' scrolling='no' seamless='true' style='width:100%; height:180px;'></iframe> The player shows up in the entry section but not when I preview it. Any thoughts?
Marc Binkley
<embed>
How can I embed an iframe on my site?
# How can I embed an iframe on my site?

(Asked by: username_0 on 2017-03-10)

How can I embed an iframe on my site? I tried pasting the iframe code in the HTML section and it didn't appear.

**Tags:** embed

> **Comments:**
> **username_1**: Can you provide more details for what you're trying to accomplish? Are you pasting the HTML into a template, or as a field value? As it currently stands, this question doesn't appear to be Craft-specific.  
> **username_2**: Hi I'm having similar problems - I want to embed a podcast from Transistor.FM <iframe src='https://share.transistor.fm/e/8a1ae567' width='100%' height='180' frameborder='0' scrolling='no' seamless='true' style='width:100%; height:180px;'></iframe> The player shows up in the entry section but not when I preview it. Any thoughts?  

---

## 1 answers

### Answer by username_3 on 2017-03-20. Score: 5

Use a text field (not rich text).  Then in the output, add "raw" to avoid it stripping any HTML tags.  
{{ entry.field | raw }}


---

