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
document.addEventListener('om.Main.init', function (evt) { | |
var Strings = evt.detail._utils.strings; | |
// Replace ¡Copiada! below with the text you wish to use. | |
Strings['Copied!'] = '¡Copiada!'; | |
}); |
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
<a href="https://app.monstercampaigns.com/c/aclizd4ba0gfjv9u1hhu/" target="_blank">Subscribe Now!</a> |
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
<a href="https://app.monstercampaigns.com/c/aclizd4ba0gfjv9u1hhu/" target="_blank"><img src="http://www.example.com/image.jpg" alt="Call to action text in case your image doesn't load." height="" width="" /></a> |
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
<a href="https://app.monstercampaigns.com/c/aclizd4ba0gfjv9u1hhu/" data-mobile-slug="dbceszydjgz4zygaaq3y" target="_blank">Subscribe Now!</a> |
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
<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 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 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 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 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); |
NewerOlder