Location: everywhere
Whatsapp chatbox
/** * WhatsApp Chatbox – auto open na 10s, mobiel compact venster + grotere tekst */ add_action( ‘wp_footer’, function() { ?> Chat met ons WhatsApp Chat × Hallo 👋Waarmee kunnen wij je helpen? VerzendContinue reading
Whatsapp + bellen
/** * WhatsApp Chatbox – auto open na 10s, mobiel compact venster + grotere tekst */ add_action( ‘wp_footer’, function() { ?> Chat met ons Bel met ons WhatsApp Chat × Hallo 👋Waarmee kunnen wij je helpen? VerzendContinue reading
75136-535
Security headers
// Functie om beveiligingsheaders toe te voegen aan de WordPress-site function add_security_headers() { // X-Frame-Options: Voorkomt clickjacking door te voorkomen dat de site in een iframe wordt geladen header(‘X-Frame-Options: DENY’); // X-Content-Type-Options: Voorkomt MIME-type sniffing header(‘X-Content-Type-Options: nosniff’); // Referrer-Policy: Beperkt…Continue reading
SEO verbeteringen en instellingen
/** * Plugin Name: SEO Essentials (no ads, no bloat) * Description: Titels/meta/canonical/robots, OG/Twitter, JSON-LD (Organization/LocalBusiness, WebSite+SearchAction, WebPage/Article, Breadcrumbs, FAQ, HowTo), robots.txt, alt-fallback, noindex met sitemap-exclude. Inclusief instellingenpagina. * Version: 1.1.0 * Author: Jij */ if ( ! defined( ‘ABSPATH’…Continue reading
Simpele Sitemap
/** * Pixelsz Sitemap shortcode * Gebruik: [pixelsz-sitemap] * Opties (optioneel): * [pixelsz-sitemap types=”page,post” orderby=”title” order=”ASC” posts_per_page=”-1″ exclude_ids=”” exclude_cats=””] */ function px_simple_sitemap_shortcode($atts) { $atts = shortcode_atts(array( ‘types’ => ‘page,post’, // comma-gescheiden ‘orderby’ => ‘title’, // title | date | modified…Continue reading
Prevent Powerpack Off Canvas from Breaking JavaScript loading
add_filter( ‘pp_offcanvas_body_inner_wrap’, ‘__return_false’ );Continue reading
Facebook Checkout URL fix
/** * Handle Meta (Facebook/Instagram Shops) checkout URLs * Format: /checkout?products=wc_post_id_123:2,wc_post_id_456:1&coupon=CODE */ add_action( ‘template_redirect’, function() { if ( isset( $_GET[‘products’] ) ) { // Ensure WooCommerce is loaded if ( ! function_exists( ‘WC’ ) || ! WC()->cart ) { return;…Continue reading