plain-css.css

html div#om-{{id}} * { /* Anything inside here will be applied to all elements within your OptinMonster campaign */ }Continue reading

om-translate-copied.js

document.addEventListener(‘om.Main.init’, function (evt) { var Strings = evt.detail._utils.strings; // Replace ¡Copiada! below with the text you wish to use. Strings[‘Copied!’] = ‘¡Copiada!’; });Continue reading

Enable quantity field on shop page

// Remove the default add to cart button remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 ); // Add custom add to cart form for both simple and variable products add_action( ‘woocommerce_after_shop_loop_item’, ‘custom_add_to_cart_form_on_shop_page’, 10 ); function custom_add_to_cart_form_on_shop_page() { global $product; if ( $product->is_type( ‘simple’…Continue reading