RAVER DOGS – HEADER V2 STYLESHEET

/* ================================================================= RAVER DOGS – HEADER V2 STYLESHEET ================================================================= */ /* — 1. Global & Body Styles — */ body { color: #FFFFFF; font-family: “brandon-grotesque”, sans-serif; font-size: 18px; font-weight: 700; /* Bolder font for menu */ line-height: 1.6; } /*…Continue reading

Mobile Menu Toggle Script

document.addEventListener(‘DOMContentLoaded’, function() { const menuToggle = document.querySelector(‘.menu-toggle’); // Check if the toggle button exists if (menuToggle) { menuToggle.addEventListener(‘click’, function() { // Toggle a class on the element document.body.classList.toggle(‘nav-is-open’); }); } });Continue reading

Front End—Prevent Mouse Scroll Changing Number Inputs

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

Specify Query Parameters that Skip SiteGround Speed Optimizer Cache

add_filter( ‘sgo_bypass_query_params’, ‘add_sgo_bypass_query_params’); function add_sgo_bypass_query_params( $bypass_query_params ) { // Add custom query params, that will skip the cache. // Custom Parameters $bypass_query_params[] = ‘condis’; // Can be used to force non-cache for pages with dynamic content $bypass_query_params[] = ‘fname’; //…Continue reading