In this Joomla 3.0 tutorial, we'll show you how to add an iframe when writing an article. You can't simply use the HTML editor and type in your iframe code because Joomla will strip it out for security reasons. Therefor, you need to update your editor's settings and allow iframes.

To use an iframe in Joomla 3.0:

  1. Log into your Joomla 3.0 administrative dashboard
  2. In the top menu, click Extensions and then click Plug-in Manager
  3. In the left menu under Filter, click Select Type and then click editors. In the list of results, click Editor - TinyMCE.
  4. At the top of the page, click the Basic Options tab
  5. Scroll down until you find the Prohibited Elements setting:

    prohibited-elementsProhibited Elements
    Elements that will be cleaned from the text. Do not leave empty - if you do not want to prohibit anything enter dummy text e.g.cms

    The default text is script,applet,iframe. Delete ,iframe so that the setting now reads script,applet

    Click Save in the top left menu.

    You should now be able to use the HTML editor within the TinyMCE WYSIWYG editor without worrying about your iframe code being stripped out.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Comments

Post a comment
n/a Points
2014-02-28 4:35 pm

I followed the step by step on Joomla 3.2

Still doesn't work. the only thing from the <iframe> code that shows up is the text and not the image

Staff
5,425 Points
2014-02-28 5:32 pm
Hello Shila,

Thank you for your question. I tested this out on a clean install of Joomla 3.2, and it works; but the steps are a little different:

  1. Log into your Joomla 3.0 administrative dashboard

  2. In the top menu, click Extensions and then click Plug-in Manager

  3. In the left menu under Filter, click Select Type and then click editors. In the list of results, click Editor - TinyMCE.

  4. Then you will see Prohibited Elements over to the right. Delete", iframe" then click the save button. Then you can use the HTML editor within the TinyMCE WYSIWYG editor without worrying about your iframe code being stripped out.


If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-02-28 6:50 pm

Hi John,

Thank you so much for your reply.

I did that aswell, still can't see the box.... I am thinking maybe it has something to do with the div code as well.

here is a example of the code I am trying to put in my blog.

 

<iframe src="https://social.popsugar.com/shopsense/slider?w=550&amp;h=230&amp;r=1&amp;ids=441715238%2C435968886%2C300846758&amp;color=2693a5af5db3f2ff4d3c06aab75377a5%2C2d08aa5bfc67db1fc24294e3940841b9%2C8476cf82adbf4f9655e973a0af5072f5&amp;pid=uid8601-24265699-3" seamless="seamless" style="margin:0 auto;background: #fff" frameborder="0" height="230" scrolling="no" width="550"></iframe><div id="details" style="margin: 10px auto 20px; padding: 10px; width: 570px; line-height: 16px;"><a target="_blank" style="color:#999;text-decoration:none;font-size:11px;" title="Contrarian Evening Dresses" href="http://www.shopstyle.com/browse/evening-dresses/Contrarian"> Contrarian Evening Dresses</a> · <a target="_blank" style="color:#999;text-decoration:none;font-size:11px;" title="Blaque Label Cocktail Dresses" href="http://www.shopstyle.com/browse/cocktail-dresses/Blaque-Label"> Blaque Label Cocktail Dresses</a> · <a target="_blank" style="color:#999;text-decoration:none;font-size:11px;" title="McQ by Alexander McQueen Longsleeve Tops" href="http://www.shopstyle.com/browse/longsleeve-tops/McQ-by-Alexander-McQueen"> McQ by Alexander McQueen Longsleeve Tops</a></div>

Once pasted in he Toggle JCK or Anyother editors the only thing that shows up is the text.

Staff
10,518 Points
2014-02-28 10:17 pm
Hello Shila,

I took a little bit of time I and tried breaking down the iFrame request. As far as I know, when I put the URLs that you're using in your iFrame statment, it works by itself (the URLs that you're using). I would suggest using your iFrame statement with a URL that goes to a graphic (e.g. http;//someplace.com/graphic_name.jpg), and see if that works. If it's working, then it's possible that the URLs you have provided simply do not work within the Joomla framework. If you continue to have problems with this issue, please contact our live technical support.

I hope this helps to provide some clarity. Let us know if you still require assistance.

Regards,
Arnel C.
n/a Points
2014-03-04 2:33 am

Thank you so much Arnel,

It seem to work! the only problem is that the products are not visiable in the backend, but once I save the blog and publish it they are visiable ont he frontend.

 

Thanks so much for all your help.

:)

Shila

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2024
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5333

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
Stack Exchange Q&A site proposal: Joomla

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!