1. Home
  2. Knowledge Base
  3. FAQs
  4. How To?
  5. Adding language translation to Splash Pages

Adding language translation to Splash Pages

Presetup Considerations

This guide utilizes a free service whose availability may change over time. You will need to add cdn.gtranslate.net to your hardware’s ACL/Walled Garden configuration.

  1. Login to your Smart WiFi Dashboard
  2. Use the menu to the left to navigate to Network > Splash Pages
  3. Click the blue edit icon for the Splash Page you want to add translate functionality to
  4. Click on the top content block of your page and then click the <> button on the menu bar to the left.
  5. Paste the following code into the html code window and press OK
    <script>window.gtranslateSettings = {"default_language":"en","detect_browser_language":true,"wrapper_selector":".gtranslate_wrapper"}</script>
    <script>
    window.addEventListener('DOMContentLoaded', function() {
    var urlPartial = 'hotspotlogin';
    if (window.location.href.indexOf(urlPartial) > -1) {
    var script = document.createElement('script');
    script.src = 'https://cdn.gtranslate.net/widgets/latest/float.js';
    document.head.appendChild(script);
    }
    });
    </script>
    <div class="gtranslate_wrapper"></div>
  6. Repeat steps 4 and 5 for the Return Guest page
  7. Save your Splash Page
Updated on April 5, 2023

Was this article helpful?

Related Articles