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
<a href="https://app.monstercampaigns.com/c/aclizd4ba0gfjv9u1hhu/" data-mobile-slug="dbceszydjgz4zygaaq3y" target="_blank">Subscribe Now!</a> |
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
<map name="tilaa"> | |
<area class="om-monster-link" shape="rect" coords="0,0,81,80" alt="tilaa" href="https://app.monstercampaigns.com/c/ngxwfy7klemoqs8xtapg/" target="_blank" rel="noopener noreferrer" map=""></map> |
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
/** | |
* Limit OptinMonster Campaigns | |
* @author Erica Franz | |
* @url https://fatpony.me | |
* @desc Show only one OptinMonster campaign per page visit regardless of campaign type. | |
*/ | |
// Run this script when the first Campaign is shown | |
document.addEventListener('om.Campaign.afterShow', function(event) { | |
// Locate and remove only empty HTML placeholders for 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
// Let's trigger an OptinMonster conversion only after sucessfull WPForms submission (requires AJAX in WPForms enabled). Piece-mealed from https://wpforms.com/developers/how-to-open-a-new-link-on-form-submission/ | |
// We can use jQuery here because it's a WPForms dependency | |
jQuery( function( $ ) { | |
// Edit to change 521 to the ID of your specific WPForms form. | |
$( '#wpforms-form-521' ).on( 'wpformsAjaxSubmitSuccess', function( e ) { | |
// trigger conversion | |
om{{id}}.Listeners.convert(); | |
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
html div#om-{{id}} .{{ns}}-FieldsElement--wrapper input[type=checkbox][name="FieldsElement--privacyText-checkbox"] { | |
vertical-align: top !important; | |
} |
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
function myReferrer() { | |
var ref = document.referrer; | |
if(!ref) { | |
// redirect to a specific URL if referrer doesn't exist | |
var redirect = 'https://optinmonster.com'; | |
} else var redirect = ref; | |
// Let's print what referrer is being passed into the dev tools console, remove this in production | |
console.log(ref); |
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
document.addEventListener('om.Campaign.afterShow', function(event) { | |
// Replace YOUR_DUMMY_EMAIL with the email address you want to autofill the field with. | |
// A validly formatted email address is required here. | |
var emailValue = "YOUR_DUMMY_EMAIL"; | |
document.getElementById("{{ns}}-field-email").value = emailValue; | |
}); |
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
function mySep() { | |
var url = window.location.href; | |
if (url.indexOf('?') != -1) { | |
var sep = '&'; | |
} else var sep = '?'; | |
console.log(sep); | |
return sep; | |
} |
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
html div#om-{{id}} { | |
left: 0 !important; | |
height: 540px !important; | |
top: calc(540px / 2) !important; | |
bottom: calc(540px / 2) !important; | |
margin-top: auto !important; | |
margin-bottom: auto !important; | |
animation: 1s ease-out 0s 1 slideInFromLeft; | |
} | |
@keyframes slideInFromLeft { |