Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • mlewis09 Friend
    #148404

    Hi all,
    I’m trying to insert code to allow automatic google translation of my site, but when i create a new module (custom HTML) and insert the code, it gets changed from this:

    <div id=”google_translate_element”></div><script>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({
    pageLanguage: ‘en’
    }, ‘google_translate_element’);
    }
    </script><script src=”http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

    to this:

    <script type=”text/javascript”>// <!]></script>
    <script src=”http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

    Any ideas on why this is happening, and how to avoid it?
    Thanks,
    m

    Saguaros Moderator
    #331798

    The Editor automatic strip tags, you should turn off editor via the global setting and put those codes in the content of custom html

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum