- Login to your Smart WiFi Dashboard
- Use the menu to the left to navigate to Network > Splash Pages
- Click the blue edit icon for the Splash Page you want to add translate functionality to
- Click on the top content block of your page and then click the <> button on the menu bar to the left.
- 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>
- Repeat steps 4 and 5 for the Return Guest page
- Save your Splash Page
Adding language translation to Splash Pages
Updated on April 5, 2023