Skip to content

ehonep/wordpress-bug-fix-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

WordPress Bug Fix Toolkit

A collection of battle-tested PHP, JavaScript, and CSS snippets for resolving common WordPress issues. Built from real-world client projects.

What's Inside

PHP Fixes

  • fixes/php/plugin-conflict-resolver.php — Safely deactivate conflicting plugins and log issues
  • fixes/php/white-screen-debug.php — Emergency debug mode for White Screen of Death
  • fixes/php/woocommerce-checkout-fix.php — Fix common WooCommerce checkout failures
  • fixes/php/admin-ajax-optimizer.php — Reduce admin-ajax overhead on frontend

JavaScript Fixes

  • fixes/js/filter-state-manager.js — Prevent WooCommerce filter resets on AJAX navigation
  • fixes/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

CSS Fixes

  • fixes/css/cross-browser-nav.css — Normalize navigation click areas across browsers
  • fixes/css/mobile-header-fix.css — Fix common mobile header spacing issues
  • fixes/css/elementor-responsive-patches.css — Responsive fixes for Elementor Pro widgets

Usage

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';

Tech Stack

  • 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)

License

MIT

About

Battle-tested PHP, JS & CSS snippets for common WordPress bug fixes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors