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

DJFrancois (copy)

DJ Francois /* Basisstijlen */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: ‘Arial’, sans-serif; } body { background: #0a0a0a; color: white; overflow-x: hidden; scroll-behavior: smooth; } /* Navigation */ nav { position: fixed; top: 0; width: 100%; padding:…Continue reading