Why won't Google translate html code work on my blog site?

  • Unknown's avatar

    I want to add Google Translate. Each time I attempt to enter the html code in a text widget, nothing happens. I’m instructed elsewhere to add the code to page properties; but I can’t locate them. This is true also on my other blog brotherjohnsite.wordpress.com

    HTML code I’m attempting to use.

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

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You can’t use script tags on WordPress.com:

    Add Code to Your Site

  • The topic ‘Why won't Google translate html code work on my blog site?’ is closed to new replies.