How to replace a Google Translate widget on WordPress

Check which translation widget your site uses. If you need editable translations with their own URLs, test the replacement on one WordPress page before removing the old switcher.

Find what serves your translations

Open a public page in a private window. Choose View page source and search for translate_a/element.js or googleTranslateElementInit. A script from translate.google.com with these markers points to Google’s Website Translator embed. A script from cdn.gtranslate.net points to a GTranslate widget. If you see neither, check your active WordPress plugins or ask whoever maintains the site.

Switch languages and note what happens to the URL. Open the resulting address in a fresh private window. Check that the heading and the main text open in the language you chose.

Record what you have before switching

Google’s published Website Translator notice describes restricted access for government, nonprofit and other noncommercial sites helping with the COVID-19 response. Test your own dropdown before making changes. A script can load even when a visitor’s selected language fails to display.

Save any approved translations and list the language links visitors already use. If the widget changes the visible text at the same URL, keep that URL for the original page. If visitors already use distinct language addresses, preserve them where possible and plan matching redirects for any changed paths.

Test an editable page first

Choose a service or information page people use. On staging, add the target language in Uruvo and create an editable WordPress draft. Review the headings, names, buttons and forms before publishing it on staging. Open both versions while signed out and test the switcher and important links.

After the new pages and language links pass those checks, remove the old embed or plugin from the live header or footer as part of the switch. Clear any page cache and test the published URLs on desktop and mobile.

English source
Keep /services/ as the English page.
Spanish page
Publish the approved draft at /es/servicios/.