Rishi Rishi - 1 year ago 160
HTML Question

How to insert iframe in wordpress using dashboard

I want to insert iframe in my wordpress website.

however i am unable to do so.

here is my code:

<iframe id="eventListIframe" src="http://www.example.com/widgets/eventList_.php?id=781ea4dab64042de4fbdc6d9102ef0e7" frameborder="0" scrolling="no" style="width:100%;" ></iframe><script type="text/javascript" src="http://www.example.com/widgets/iframeResizer.min.js"></script><script type="text/javascript">iFrameResize({log:false,enablePublicMethods:true});</script>

when i check on my website , i get iFrameResize({log:false,enablePublicMethods:true}); text as output.

any help would be great.

thank you.

Answer Source

To embed one web page (the data visualization) inside a second web page (the organization's website), we use a simple HTML code known as iframe.

WordPress removes iframe html tags because of security reasons. Iframe shortcode is the replacement of the iframe html tag and accepts the same params as iframe html tag does. You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page.


If you want to go through other way - Code


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download