Title: Iframe code
Last modified: July 10, 2023

---

# Iframe code

 *  Resolved [amnwtritaly](https://wordpress.org/support/users/amnwtritaly/)
 * (@amnwtritaly)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/iframe-code-2/)
 * Hi, I am using an iframe code, but it is not working.
 * I also changed the theme.
 * I am using the HTML block.
 * Am I doing something wrong?
 * [https://ibb.co/GC7xVtH](https://ibb.co/GC7xVtH)
 * [https://ibb.co/w7TG7XZ](https://ibb.co/w7TG7XZ)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Felipe Velzani](https://wordpress.org/support/users/felipevelzani/)
 * (@felipevelzani)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/iframe-code-2/#post-16884937)
 * Hi [@amnwtritaly](https://wordpress.org/support/users/amnwtritaly/)!
 * I just tested from my end and I can see that the preview works as expected for
   the Custom HTML block.
 * ⌊https://d.pr/i/QKRehu⌉⌊https://d.pr/i/QKRehu⌉
   Full Size: [https://d.pr/i/QKRehu](https://d.pr/i/QKRehu)
 * Have you checked if the URL added to the iframe indeed supports iframe? Not all
   sites would work as expected, but you can use the following for testing:
 *     ```wp-block-code
       <iframe src="https://example.com/" title="Iframe Example"></iframe>
       ```
   
 * PS: I see you’re actually using the HTML block on the Block Editor (not the Classic
   Editor plugin), so please [create a topic on the general forums](https://wordpress.org/support/plugin/classic-editor/?view=all#new-topic-0)
   if you still need help with it. Feel free to add this topic link as a reference.
 *  Thread Starter [amnwtritaly](https://wordpress.org/support/users/amnwtritaly/)
 * (@amnwtritaly)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/iframe-code-2/#post-16885496)
 * The code you provided is working in both cases (block and classic editor).
 *     ```wp-block-code
       <iframe sandbox="allow-popups allow-scripts allow-modals allow-forms allow-same-origin" style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//rcm-eu.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=lightnovelexpert-21&language=it_IT&o=29&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=8834911318&linkId=fe5ae8c557edae1f206362bb456e3e37"></iframe>
       ```
   
 * This kind of code is not supported, maybe?
 *  Thread Starter [amnwtritaly](https://wordpress.org/support/users/amnwtritaly/)
 * (@amnwtritaly)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/iframe-code-2/#post-16886235)
 * Resolved.
 * It was the AdBlock.
 * Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Iframe code’ is closed to new replies.

 * ![](https://ps.w.org/classic-editor/assets/icon-256x256.png?rev=1998671)
 * [Classic Editor](https://wordpress.org/plugins/classic-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/classic-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/classic-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/classic-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/classic-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/classic-editor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [amnwtritaly](https://wordpress.org/support/users/amnwtritaly/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/iframe-code-2/#post-16886235)
 * Status: resolved