• Hello,

    I am using this the following Google Translate text code (because I tried plugin and it didn’t show all the translations, plus I’d rather avoid another plugin).

    But anyways, the issue is that the widget creates too much whitespace around it and I want to eliminate it – especially from the height. Does anyone know how I can do this? Thanks in advance.

    Code:

    <div id="google_translate_element"></div>
    <script type="text/javascript">
      function googleTranslateElementInit() {
        new google.translate.TranslateElement({pageLanguage: 'en'}, 
        'google_translate_element');
      }
    </script>
    <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
    </script>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please provide a link to a page on your site where we can see this. Thanks.

    Thread Starter multimastery

    (@multimastery)

    Hi Steve, I don’t have it published because it messed up the nav so I had to take it off immediately; it’s just too much white space, particularly the white space height. If you can tell me how to get rid of the white space (or reduce it) that would be much appreciated.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If I can’t see it, I can’t tell you what you need to do.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Google Translate – Remove Whitespace?’ is closed to new replies.