A collection of battle-tested PHP, JavaScript, and CSS snippets for resolving common WordPress issues. Built from real-world client projects.
fixes/php/plugin-conflict-resolver.php— Safely deactivate conflicting plugins and log issuesfixes/php/white-screen-debug.php— Emergency debug mode for White Screen of Deathfixes/php/woocommerce-checkout-fix.php— Fix common WooCommerce checkout failuresfixes/php/admin-ajax-optimizer.php— Reduce admin-ajax overhead on frontend
fixes/js/filter-state-manager.js— Prevent WooCommerce filter resets on AJAX navigationfixes/js/wishlist-toggle.js— Reliable wishlist heart icon toggle (fill/unfill)fixes/js/lazy-load-fix.js— Fix lazy loading conflicts with sliders and carousels
fixes/css/cross-browser-nav.css— Normalize navigation click areas across browsersfixes/css/mobile-header-fix.css— Fix common mobile header spacing issuesfixes/css/elementor-responsive-patches.css— Responsive fixes for Elementor Pro widgets
Each snippet is standalone. Copy what you need into your theme's functions.php, a custom plugin, or your child theme's stylesheet.
// Example: Add to functions.php
require_once get_stylesheet_directory() . '/fixes/php/plugin-conflict-resolver.php';- WordPress 5.x / 6.x
- WooCommerce 7.x / 8.x / 9.x / 10.x
- Elementor / Elementor Pro
- PHP 7.4 — 8.3
- Vanilla JavaScript (no jQuery dependency)
MIT