Display Width in Pixel - Elementor
This displays Width of the Current Editor View in Pixels, when Editing in Elementor. Copied from..…
Give export capability to administrator
This snippet adds the export capability to the administrator user role.
om.Sites.init
document.addEventListener('om.Sites.init', function(event) { console.log(event.detail.Sites); // An array of all the Site objects associated to this campaign.…
om.Group.init
document.addEventListener('om.Group.init', function(event) { console.log(event.detail.Group); // An array of the Rule objects console.log(event.detail.Group.rules); console.log(event.detail.Campaign); } );
Una plant Quiz Score Calculator
/** * Author: Sumaiya, Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25375 * Function to handle quiz submission, calculate results based…
om.Action.refresh
document.addEventListener('om.Action.refresh', function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); // This event is…
disable webfonts for a spesific campaign
document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; if ({slug} === campaign.id) { campaign.settings.preload = false; }…
trigger monsterlink of an external link
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
Limit Revisions
/** * Limit WordPress revisions to 5 for all post types. */ add_filter('wp_revisions_to_keep', function ($num, $post)…