Created
November 2, 2020 20:50
-
-
Save ericakfranz/ba9073d510845c74c66df14576a37327 to your computer and use it in GitHub Desktop.
Customize the close title for OptinMonster campaigns.
This file contains hidden or 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
<script type="text/javascript" id="customize-om-close-title-attr"> | |
document.addEventListener('om.Campaign.load', function(event) { | |
document.querySelectorAll('html div#om-{{id}} [class*="-close"]')[0].setAttribute('title', 'Custom Title Text Here'); | |
} ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment