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('OptinMonsterInit', function( event, data, object ){ | |
// If video is playing (add your own logic here), remove the optin. | |
if ( data.optin ) { | |
$('#om-' + data.optin).remove(); | |
} | |
}); | |
}); |
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).on('OptinMonsterLoaded', function( event, data, object ){ | |
console.log(event); | |
console.log(data); | |
console.log(object); | |
}); |
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( "DOMContentLoaded", function(event) { | |
document.onload('EventName', function( event,data,object ) {} ); | |
}); |
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($){ | |
jQuery(document).on('EventName', function( event,data,object ) {} ); | |
}); |
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('EventName', function(event,data,object) {} ); | |
}); |
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
.soliloquy-container .soliloquy-slider:before { | |
display: block; | |
content: ''; | |
width: 50%; | |
height: 100%; | |
position: fixed; | |
right: 0; | |
z-index: 9; | |
background: url('http://www.360fashion.net/wp-content/uploads/2013/01/image-placeholder-500x500.jpg'); | |
background-size: contain; |
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
<?php | |
$gallery = get_post_meta( get_the_ID(), 'gallery_images' ); // 'gallery_images' is name of the ACF gallery field | |
$post_id = get_the_ID(); // grab the ID of the post to build into our Dynamic gallery's custom ID | |
// If we have something output the gallery | |
if( isset( $gallery[0] ) && is_array( $gallery[0] )) { | |
$image_ids = $gallery[0]; | |
envira_dynamic( array( |
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($){ | |
function omRedirect() { | |
var url = "http://optinmonster.com"; | |
$(location).attr('href',url); | |
} | |
$(document).on('OptinMonsterOnClose', function(event, data, object){ | |
if(data.optin = 'YOUR_OPTIN_SLUG_HERE') { | |
omRedirect(); | |
} | |
}); |
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($){ | |
function omRedirect() { | |
var url = "http://optinmonster.com"; | |
$(location).attr('href',url); | |
} | |
$(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); }); | |
}); |