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 = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with the unique ID for your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading

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 optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with the unique ID of your campaign optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading

Remove Specific Campaign From a Specific URL

document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.href == ‘https://example.com/specific-page’) { // replace with your specific URL var optinCampaign = document.querySelector(‘#om-CAMPAIGN_ID’); // replace CAMPAIGN_ID with your campaign’s unique ID optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading

Remove All Campaigns From a Specific URL

document.addEventListener(‘om.Campaign.startShow’, function(event) { if(window.location.href == ‘https://example.com/specific-page’) { // replace with your specific URL var optinCampaign = document.querySelector(‘#om-‘ + event.detail.Campaign.id); optinCampaign.parentNode.removeChild(optinCampaign); } });Continue reading

Basic | Mobile Header DOM-Reihenfolge anpassen (Branding – Widgets – Navigation)

jQuery(document).ready(function ($) { function reorderMobileHeaderBar(container) { const branding = container.find(‘.mobile-branding’); const widgets = container.find(‘.mobile-mini-widgets’); const navigation = container.find(‘.mobile-navigation’); if (branding.length && widgets.length && navigation.length) { container.append(branding); container.append(widgets); container.append(navigation); } } const observer = new MutationObserver(function (mutationsList, obs) { for (const…Continue reading

Basic | Alt-Text von Header-Logo anpassen

jQuery(document).ready(function ($) { // Dein ursprünglicher Code bleibt unverändert document.querySelectorAll(‘.masthead .branding img, .mobile-branding img, .masthead .branding .sticky-logo img, .mobile-branding .sticky-logo img, .masthead .branding .preload-me, .mobile-branding .preload-me’).forEach((item) => { item.setAttribute(‘alt’, ‘Das Logo von movatix verlinkt zur Startseite’); }); // Ergänzung: MutationObserver…Continue reading