Location: site_wide_header
cart preview image stretch fix in oceanWP theme (copy)
/*Menu cart hover dropdown box image stretch fix*/ .woocommerce ul.product_list_widget li img { float: unset !important; display: block !important; min-width: 80px !important; height: 80px !important; margin-left: unset !important; position: relative !important; } .woocommerce ul.product_list_widget .wpr-mini-cart-image { display: inline-block; float: left;…Continue reading
Digital
Update Quiz button
(function(w, d, s, o){ var j = d.createElement(s); j.async = true; j.src = ‘//script.marquiz.io/v2.js’;j.onload = function() { if (document.readyState !== ‘loading’) Marquiz.init(o); else document.addEventListener(“DOMContentLoaded”, function() { Marquiz.init(o); }); }; d.head.insertBefore(j, d.head.firstElementChild); })(window, document, ‘script’, { host: ‘//quiz.marquiz.io’, region: ‘us’, id:…Continue reading
Sub menu height control
/* FIXES SUB MENUS ON MOBILE */ .gm-dropdown-submenu:nth-child(3) > .gm-dropdown-menu-wrapper { top: 0px !important; margin-top: 0px !important; }Continue reading
CSS Mobile burger menu
@media ( max-width: 1023px ) { .gm-navigation-drawer–mobile .gm-menu-btn-close-mobile-drawer { padding: 12px 0px 0px 0px !important; } .gm-navigation-drawer–mobile .gm-mobile-menu-container { margin-top: 0px; } }Continue reading
Injects Rewards into mobile burger menu
jQuery( document ).ready( () => { let mobile_menu_container = jQuery( ‘.gm-mobile-menu-container’ ).first(); if ( typeof mobile_menu_container == typeof undefined ) { return; } let component = ` Terra Rewards Earn points, rewards and discounts! `; mobile_menu_container.before( component ); });Continue reading
Product Quizz
const review_quizz_button = ( ev ) => { let target = jQuery( ev.currentTarget ); let span = target.children( ‘span’ ).first(); if ( typeof span == typeof undefined ) { return false; } let text = span.html(); if ( `${text}` ==…Continue reading
Banner My Rewards Fix
function try_open_my_rewards() { let my_rewards_container = jQuery( ‘.wll-launcher-button-container’ ); if ( my_rewards_container.length < 1 ) { window.location.href = '/my-account/loyalty_reward/'; return; } my_rewards_container.first().trigger('click'); } jQuery( document ).ready(() => { let banner_my_rewards = jQuery( ‘#myRewards’ ); if ( banner_my_rewards.length < 1 )…Continue reading