Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created December 7, 2015 21:58
Show Gist options
  • Save ericakfranz/0783b4ded98a4a61f36e to your computer and use it in GitHub Desktop.
Save ericakfranz/0783b4ded98a4a61f36e to your computer and use it in GitHub Desktop.
Remove OM optin, requires own custom conditional statement (remove optin if x = y).
jQuery(document).ready( function($){
$(document).on('OptinMonsterInit', function( event, data, object ){
// If video is playing (add your own logic here), remove the optin.
if ( data.optin ) {
$('#om-' + data.optin).remove();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment