Graphic Updater Training

Transferring Sites from SWEngine to WordPress

Introduction

Contact List

  • Contact List

Google Translate

We are generally trying to get away from adding the Google Translate widget to our sites, mainly because modern browsers automatically translate websites into the native language of the user’s device. Also, the widget has been deprecated, meaning that Google doesn’t maintain it any longer. There is no guarantee for how long it will keep functioning. With that said, if a client insists, here are instructions on how to add it:

How to add Google Translate
  1. In the footer of the site, add a new code module.
  2. Paste in the following:<div id=”google_translate_element”></div>
    <script type=”text/javascript”>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: ‘en’, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, ‘google_translate_element’);
    }
    </script>
    <script async=”async” type=”text/javascript” src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

    <style>

    #google_translate_element {
    display: none;
    }

    @media screen and (min-width: 66em) {

    footer {
    z-index: auto;
    }

    #google_translate_element {
    display: block;
    position: fixed;
    bottom: 0;
    right: 20px;
    }

    .googe-te-gadget-simple span {
    color: #676767!important;
    }

    .goog-te-gadget-simple {
    border: 1px solid #d5d5d5!important;
    }

    }

    </style>

  3. Save the module and page.

Modules

Page Graphics

DP Masonry Gallery

Slideshows

Tables

Videos

  • Videos