om.Countdown.init
document.addEventListener('om.Countdown.init', function(event) { console.log(event.detail.Countdown); console.log(event.detail.Campaign); } );
om.Analytics.track example 1
document.addEventListener('om.Analytics.track', function(event) { if ( 'conversion' === event.detail.Analytics.type ) { console.log(event.detail.Campaign.id + '-' + event.detail.Campaign.type +…
Page Element Shortcodes
add_shortcode('page_title', function () { global $wp_query; if( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { return…
om external links monsterlink
(function(window, document) { // Your campaign's UNIQUE ID var campaignSlug = 'YOUR-UNIQUE-ID'; // Helper to get…
allow contributors
add_filter( 'optin_monster_api_menu_cap', function( $cap ) { return 'edit_posts'; } );
focus outline none
div#om-{{id}} *:focus { outline: none; }
pop-up na 'nu kopen'
Nu kopen button laat pop-up zien en geeft link naar winkelmandje
archive-listings.php
Property Listings
Toggle switch pricing tabel
$( document ).ready(function() { $('.group-two').hide(); $('.change-price').on('click', function() { $('.group-one, .group-two').toggle(); } ); });
Livrare 20kg plus
Cheltuielile de livare nu sunt incluse în prețul total la comenzile care depășesc 20 kg !…
Add category to page
// Abilita categorie (e, opzionalmente, tag) per le Pagine add_action('init', function () { register_taxonomy_for_object_type('category', 'page'); //…