om-wp-plugin-load-in-head.php

// returning false will change the default location from footer to the head add_filter( 'optin_monster_api_loading_location', '__return_false'…

om-disable-preload.js

document.addEventListener('om.Campaign.init.preload', function(event) { event.detail.Campaign.settings.preload = false; });

om-disable-preload-specific-campaigns.js

document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; // replace {id} with the unique ID of your…

defer-om-embed-wordpress.php

function your_prefix_om_defer_script( $campaign_embed ) { $campaign_embed = str_replace( 's.async=true;', 's.defer=true;', $campaign_embed ); return $campaign_embed; }; add_filter(…

div conversion trigger

Double Click Below to Get Started

iframe cover css

/* HTML link cover styles */ html div#om-{{id}} #iframeCover { display: block; height: 100%; width: 100%;…

om-iframe-conversion-example.html

Double Click Below to Get Started Loading...

Hide all admin notices and notifications

The code below can hide all notices, error notices, warnings, update notices, etc, from the WP…

Enable quantity field on shop page

// Remove the default add to cart button remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); // Add custom…

1 178 179 180 181 182 211