// Define background images for specific pages using slugs or IDs $background_images = [ 'login' => 'https://tsidigitalsolution.be/wp-content/uploads/2024/03/tinywow_pexels-skyler-ewing-6131869_36104190-scaled.webp', 'overview-quotation' => 'https://tsidigitalsolution.be/wp-content/uploads/2025/01/Quote-Example-e1735856823785.webp', 'tsi-free-tools' => 'https://tsidigitalsolution.be/wp-content/uploads/2026/08/TSI-Free-Tools.webp', 'tsi-visitor-blocker' => 'https://tsidigitalsolution.be/wp-content/uploads/2026/10/banner-1544x500-1.webp', 'tsi-webp-converter-tool' => 'https://tsidigitalsolution.be/wp-content/uploads/2026/04/TSI-WebP-Converter-Tool.webp', 'Bot Traffic: How to Detect Fake Website Visitors and Protect Your Leads' =>'https://tsidigitalsolution.be/wp-content/uploads/2026/01/Spam.webp' } ]; // Get the current page slug (or ID) $current_slug = get_post_field('post_name', get_the_ID()); // Check if the current page slug exists in the background image array if (array_key_exists($current_slug, $background_images)) { // Preload the background image echo ''; } Graphic Design Blog