om-manually-set-global-cookies.js
// Set OptinMonster Global Cookies when this function runs function setGlobalCookies() { document.cookie = "omSuccessCookie=true; expires=Fri,…
slide-top-right.css
html div#om-{{id}} { top: 0px !important; bottom: unset !important; transition: top 0.3s ease 0s !important; }
Customize Gift Card Code
/* Customize the generated Gift Card Code */ function agcfw_change_prefix() { return array( 'characters' => 'ABCDEFGHJKMNPQRSTUVWXYZ23456789',…
Enable automatic updates for WordPress core, plugins, and themes
// Enable automatic updates for WordPress core, plugins, and themes add_filter('automatic_updater_disabled', '__return_false'); add_filter('auto_update_core', '__return_true'); add_filter('auto_update_plugin', '__return_true');…
Test Snippet
Just a snippet description
Set a cookie if the URL contains specific UTM parameters.
The below script checks the URL for specific UTM parameters and if found, saves a cookie…
WriteSonic
Fix Issues with Website
om.Types.init
document.addEventListener('om.Types.init', function(event) { // The Campaign type. console.log(event.detail.Types.type); // The Campaign Type object (one of Floating,…
om.Campaign.show
document.addEventListener('om.Campaign.show', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
om.Campaign.cleanup
document.addEventListener('om.Campaign.cleanup', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );
Style ALL Placeholder Text on Your Website
::-webkit-input-placeholder { color: #333 !important; } /* Chrome/Opera/Safari */ ::-moz-placeholder { color: #333 !important; } /*…