Google Translator Widget is not appearing correctly on side bar

  • Unknown's avatar

    Hi Support Team,

    I followed the below steps to add the Google Translator widget to my blog and having issues.

    1. On the Google Translator site, I generated the below code for the widget.

    <div id=”google_translate_element”></div><script type=”text/javascript”>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: ‘en’, layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, ‘google_translate_element’);
    }
    </script><script type=”text/javascript” src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

    2. When I try to paste this code in the sidebar Text widget, it is automatically trimming the code and changes to as shown below.

    <div id=”google_translate_element”></div>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: ‘en’, layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, ‘google_translate_element’);
    }

    3. On the side bar of my site the widget is not appearing, and I get to see only some code on the side bar.

    Can you please help in this regard.

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

  • Unknown's avatar
  • The topic ‘Google Translator Widget is not appearing correctly on side bar’ is closed to new replies.