Replace Special Characters in Post Title

var myInterval = setInterval(checkForJquery, 50); function checkForJquery() { if (window.jQuery) { clearInterval(myInterval); fixPageTitles(); } } function fixPageTitles() { /* find the page title */ var originalString = jQuery(‘h1.elementor-heading-title.elementor-size-default’).text(); /* replace raw special characters with the proper HTML entity */ if…Continue reading

Editorial Group GTM Head Tag

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’: new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src= ‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f); })(window,document,’script’,’dataLayer’,’GTM-PS5CP37N’);Continue reading

htmk to monsterlink

jQuery(document).ready(function($) { $(‘a[href=”#”]’).addClass(“manual-optin-trigger”); $(‘a[href=”#”]’).attr(“data-optin-slug”, “pm6fnflhiocj7cge”); });Continue reading

dynamic-monsterlinks-by-class-name.js

// Target by class name window.onload = function(){ const dynamicMonsterLinks = document.querySelectorAll(“a.myClass”); dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href = “MONSTERLINK_URL”); }Continue reading

om-exclude-campaign-revenue-attribution.js

document.addEventListener(‘om.Campaign.init’, function(event) { if (‘CAMPAIGN_ID’ === event.detail.Campaign.id) { // replace CAMPAIGN_ID with the OptinMonster campaign’s unique ID event.detail.Campaign.settings.revenueAttribution = false; } });Continue reading

om-change-view.js

// Show the Yes/No view om{{id}}.changeView(‘yesno’); // Show the Optin view om{{id}}.changeView(‘optin’); // Show the Success view om{{id}}.changeView(‘success’);Continue reading