3.67 (3 votes)

While administrating Joomla! you may come across quite a common issue.
After adding a custom HTML code in an article or a module, you may find out the HTML code is stripped out from some keay HTML tags once you saved the module/article.
Especially, this issue applies to scripts (e.g. if you try to add Google Adsense on your website) or iframe and embed tags (e.g. if you try to add YouTube or Flash video).

 

Why Joomla remove some HTML code?

In Joomla configuration you can define different filtering options regarding the entered HTML code by members of each user group.
It is a protection against markup commonly associated with website attacks.
How to change these settings you will find out below.

Text filtering in Joomla.

First of all, you should check which filter type is assigned to your user group.
Go to Site -> Global Configuration -> Text Filters and you will see this page:

 

For Joomla 3.x  (it looks similar for Joomla 2.5)

Text Filter settings Joomla 3

 

Make sure the Super Users and the Administrator group is set to No Filtering.
It means that Joomla will not remove any code from article or module if you are the website administrator.

If you would like to assign the No Filtering filter type to other groups, simply choose the right option from the list next to the group name and click on the Save button:

 

Text Filter Settings Joomla 3

 

Joomla editor settings.

If you are using a text editor in your Joomla! backend, you may need to change its settings in order to display all HTML tags that you wish.
The default editor in Joomla is TinyMCE and we will focus on this plugin.

Go to Extensions -> Plug-in Manager -> Editor - TinyMCE and you will see the plugin parameters:

For Joomla 3.x  (it looks similar for Joomla 2.5)

TinyMCE editor Joomla 3

Choose the Extended functionality.
This way you will enable more features in the editor toolbar and you will be able to add embedded media as well.
Secondly, you need to remove the HTML tags from the Prohibited Elements list. Do not leave this field empty, since the default tags will be restored after saving.
Simply enter any dummy text as "empty" or whatever.


TinyMCE editor - extended functionality

 

Don't forget to save the plugin settings.
Now you should be able to add your custom HTML code to an article or module.

 

Users' reviews

Total rating: 3.67 (3 votes) Add review

Video Tutorials

EF4 Framework for Joomla! 3 - introduction

Joomla! 3 Quickstart Installation Guide

Speed up your website! Must watch video!

How to create Joomla article?

Joomla ReCaptcha - how to set up?

How to use Joomla editors?

How to display a module in Joomla article?

How to configure Joomla contact form?

How to check Joomla module positions names?

How to configure your language for Joomla 3?

How to create Joomla custom HTML module?

How to create Joomla menu?

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2017 Joomla-Monster.com All rights reserved. Joomla! is Free Software released under the GNU/GPL License.
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Joomla-Monster.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

You will Get best support ever!

Do you know that besides high-quality templates
& pro extensions given for FREE 
our customers appreciate the excellent support

Check here why :)