* ------------------------------------------------------------- WPCODE SNIPPET:MOBILE MENU VISUAL FIX (Self-Contained) Forces menu visibility,background,and text color when active (AESTHETICALLY FLIPPED TO NEON GREEN GLOW) ------------------------------------------------------------- */ :root{--purpink:#FF03E6;--neon-green:#39FF14;--off-white:#f0f0f0;--dark-bg:#050205;}.rd-main-menu.active{background:rgba(5,2,5,0.95) !important;z-index:100000 !important;visibility:visible !important;}.rd-main-menu.active a{color:var(--neon-green) !important;text-shadow:0 0 5px var(--neon-green),0 0 10px var(--neon-green) !important;}.menu-close-x.visible{color:var(--neon-green) !important;opacity:1 !important;visibility:visible !important;z-index:100002 !important;}// Mobile redirect (admin INCLUDED,cache-friendly) add_action('template_redirect','rd_mobile_redirect',10);function rd_mobile_redirect(){// Skip only AJAX/cron/preview/REST to avoid breaking editors & API if (wp_doing_ajax() || wp_doing_cron() || is_preview() || defined('REST_REQUEST')) return;$req_uri = $_SERVER['REQUEST_URI'] ?? '/';$path = strtok($req_uri,'?');// strip ?query // Already on mobile pages? Bail. if ($path === '/mobile' || $path === '/k9-hole-mobile') return;// Light bot guard (still allow you while logged in) $ua = $_SERVER['HTTP_USER_AGENT'] ?? '';if (preg_match('/bot|crawl|spider|slurp|facebookexternalhit|mediapartners-google/i',$ua)) return;// Detect mobile (WP helper + fallback) $is_mobile = wp_is_mobile();if (!$is_mobile){$is_mobile = (bool)preg_match('/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i',$ua);}if (!$is_mobile) return;// Only for your domain $host = $_SERVER['HTTP_HOST'] ?? '';if ($host !== 'raverdogs.com' && $host !== 'www.raverdogs.com') return;// Redirect rules if ($path === '/' || $path === ''){wp_redirect(home_url('/mobile'),302);exit;}if ($path === '/k9-hole' || $path === '/k9-hole/'){wp_redirect(home_url('/k9-hole-mobile'),302);exit;}}