Disable Quantity Field Input Changing on Mouse Scroll

function preventNumberScroll(e) { if (e.target.matches(‘input[type=”number”]’) || e.target.closest(‘input[type=”number”]’)) { e.preventDefault(); } } document.addEventListener(‘wheel’, preventNumberScroll, { passive: false, capture: true }); document.addEventListener(‘mousewheel’, preventNumberScroll, { passive: false, capture: true }); document.addEventListener(‘DOMMouseScroll’, preventNumberScroll, { passive: false, capture: true });Continue reading

Custom hyperlinks

/* ========================================================================== WPCODE CUSTOM HYPERLINK STYLES Add this CSS code to WPCode as a “CSS Snippet” ========================================================================== */ /* Default link styles – applies to all links */ a { color: #0073aa; /* Link color – change to your preferred…Continue reading