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

Ngăn WP cắt ảnh

add_filter(‘intermediate_image_sizes_advanced’, function ($sizes) { $sizes = array( ‘thumbnail’ => $sizes[‘thumbnail’], // Giữ lại thumbnail ‘medium’ => $sizes[‘medium’], // Giữ lại medium //’medium_large’ => $sizes[‘medium_large’], // Giữ lại medium_large ‘large’ => $sizes[‘large’], // Giữ lại large //’1536×1536′ => $sizes[‘1536×1536′], // Giữ…Continue reading

Remove comments article only

// Disabilita i commenti solo sugli articoli (post), non sui prodotti (product) add_action(‘init’, function() { // Rimuovi il supporto ai commenti dagli articoli remove_post_type_support(‘post’, ‘comments’); }, 20); // Nasconde il modulo commenti nel frontend per sicurezza (fallback) add_filter(‘comments_open’, function($open, $post_id)…Continue reading