Created
January 5, 2022 19:53
-
-
Save interactiveRob/8635e44e8c6aad3e52a38f2f39ccd2e4 to your computer and use it in GitHub Desktop.
Pardot translate Not You link on Landing Page form email field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add this before the closing </body> tag --> | |
<script type="text/javascript"> | |
document.addEventListener('DOMContentLoaded', function(){ | |
let span = document.querySelector('.email span.description'); | |
if(typeof span == 'undefined' || span == null) return; | |
let text = span.innerHTML; | |
let translated = text.replace("Not","Vous n’êtes pas").replace("Click Here","Cliquez-ici"); | |
span.innerHTML = translated; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment