Here's how to add a Google Translate widget on your site, perform the following steps:
- Go to Google Translate Widget
- Press the Add to your website now button and enter the Website URL that you will install
- Select the appropriate settings pluggin you want, it is advisable to choose a display mode Vertical Inline
- Copy the code which has been available into the HTML where the section of the widget you will install
<div id='google_translate_menu' style='height:40px;display:block;margin-bottom:-40px;'> <div id='google_translate_element'/> <script type='text/javascript'> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', multilanguagePage: true, gaTrack: true, gaId: 'UA-71524786-1'}, 'google_translate_element'); } </script> <script src='//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit' type='text/javascript'/> </div>
- Next you save and see the results.
But appearance of your website is felt still less comfortable for the visitors, because google translate banner and logo displayed on your website.
Well, here is how to hide the banner and logo of Google Translate so that your website will look more professional. The simplest way is to add the code below on the CSS website.
<style type='text/css'> iframe.goog-te-banner-frame{ display: none !important;} </style> <style type='text/css'> body {position: static !important; top:0px !important;} </style> <style type='text/css'> .goog-logo-link {display:none !important;} .goog-te-gadget{color: transparent !important;} </style>
No comments
Post a Comment