Last active
March 22, 2016 15:59
-
-
Save ericakfranz/3fe363de38d9690eb14a to your computer and use it in GitHub Desktop.
Add the data-pin-nopin attribute to popup optin images to exclude them from Pinterest share options. https://developers.pinterest.com/docs/widgets/pin-it/#nopin
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
jQuery(document).ready(function($) { | |
$(document).on('OptinMonsterLoaded', function(event, data, object){ | |
$('#om-' + data.optin + ' img').attr('data-pin-nopin', 'true'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment