305 Snippets
<10 Favourites
<10 Downloads

Slide Reposition Bottom Left

html div#om-{{id}} { right: auto !important; margin-left: 20px !important; }

trigger monsterlink on hover

jQuery(document).ready(function($){ // Change 'rt78pcbzrddo1y7w0yq3' to match your specific campaign slug var campaignSlug = 'rt78pcbzrddo1y7w0yq3'; $('body').on('mouseover', '[href="https://app.monstercampaigns.com/c/'…

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(…

om-nextjs14-layout.tsx

import '@/app/ui/global.css'; import {RouteChangeListener} from '@/app/route-change-listener.tsx'; export default function RootLayout({ children, }: { children: React.ReactNode; })…

om-startClose.js

// Close the OptinMonster campaign om{{id}}.startClose();

slide-bottom-left.css

html div#om-{{id}} { right: auto !important; margin-left: 20px !important; }

Remove Specific Campaign Based on the Referral URL

document.addEventListener('om.Campaign.startShow', function(event) { if(document.referrer.search.indexOf('google.com') > 0) { // replace with the specific referral domain var optinCampaign…

om.Styles.init

document.addEventListener('om.Styles.init', function(event) { console.log(event.detail.Styles); console.log(event.detail.Campaign); } );

om.Action.view

document.addEventListener('om.Action.view', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…

Slide Reposition Right Center v2

html div#om-{{id}} { margin-right: -20px !important; height: 540px !important; top: calc(540px / 2) !important; bottom: calc(540px…

om-custom-redirect-all-close.js

jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); });…

1 16 17 18 19 20 26