Rishi Rishi - 21 days ago 5
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

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.

https://wordpress.org/plugins/iframe/

If you want to go through other way - Code

http://wordpress.stackexchange.com/questions/20202/embed-iframe-or-html-page-into-dashboard-widget

Comments