Change site url
add_action('init', 'update_site_url_once'); function update_site_url_once() { if (get_option('home') !== 'https://amazingmarvin.com/blog/') { update_option('siteurl', 'https://amazingmarvin.com/blog/'); update_option('home', 'https://amazingmarvin.com/blog/'); } }
WooCommerce - Add min height to title
Used to help the shopping buttons align vertically when the title line wraps irregularly due to…
Remove Specific Campaign From Any URLs Containing a Specific URL Path
document.addEventListener('om.Campaign.startShow', function(event) { if(window.location.search.indexOf('shopping-cart') > -1) { // replace shopping-cart wtih your specific URL path var…
om.Campaigns.init
document.addEventListener('om.Campaigns.init', function(event) { // This event is passed the Campaigns object console.log(event.detail.Campaigns); } );
om.DisplayRules.init
document.addEventListener('om.DisplayRules.init', function(event) { console.log(event.detail.DisplayRules); // An array of the Ruleset objects console.log(event.detail.DisplayRules.rulesets); console.log(event.detail.Campaign); } );
om.Action.close
document.addEventListener('om.Action.close', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
Revenue Attribution Exclude Campaign
document.addEventListener('om.Campaign.init', function(event) { if ('CAMPAIGN_ID' === event.detail.Campaign.id) { // replace CAMPAIGN_ID with the OptinMonster campaign's unique…
test
test
trigger spesific monsterlink on hover
jQuery(document).ready(function($){ // Change 'rt78pcbzrddo1y7w0yq3' to match your specific campaign slug var campaignSlug = 'rt78pcbzrddo1y7w0yq3'; // When…
om-custom-redirect-close.js
jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ if(data.optin =…
css-namespace-footer.css
html div#om-{{id}} .{{ns}}-footer { /* Your custom styles */ }
Change "Bank Routing Number" fields to "Sort Code"
Use this code snippet to reformat the form to British banking details. Output: https://snipboard.io/mKSn9g.jpg Alternatively, you…
Untitled Snippet
https://intellectualspaceshiprequest.com/m3vhnv9nj?key=ee7f1f66123bd8b97fb66f8543b371e0