Tuesday, 23 July 2019 10:04
Google adsense script ins tag stripped out after saving in JCE JoomlaWritten by Super User
How to fix Adsense stripping out
If like me you are having an issue whereby when add Google Adsense code and you then save your custom module or article, the <ins> tag section dissappear, then read to get the solution:
- Check that your JCE scripts settings are set to allowed
- Check which filter type is assigned to your user group.
Go to Site -> Global Configuration -> Text Filters and you will see this page:
To fix the issue Simply add "
" between the <ins> and </ins> tag as follow:
<ins class="adsbygoogle" style="display:inline-block;width:120px;height:600px" data-ad-client="ca-pub-7091504889279901" data-ad-slot="7579365756" > </ins>
As the tag is empty, JCE and Joomla automatically assume that it has no use and therefore delete the code. By Adding "
", JCE is tricked to believe there is content. Here is what W3C says about the
<ins > Tag: https://www.w3.org/TR/html-markup/ins.html#ins
Latest from Super User
Login to post comments