Description
Jadav Image Load Fallback is a lightweight plugin that detects frontend images that fail to load and replaces them with a fallback image chosen by the site owner.
It is useful after migrations, media cleanup, content imports, CDN issues, or when third-party image URLs stop working.
Features
- Replace broken images with a selected fallback image
- Works asynchronously after the page loads
- Watches lazy-loaded and dynamically added images
- Ignore selected images with CSS selectors
- Simple settings page with media library image selection
- No external service required
Credits
This plugin is licensed under GPLv2 or later and uses only local plugin assets.
Installation
- Upload the plugin files to
/wp-content/plugins/jadav-image-load-fallback/or install the ZIP through WordPress admin. - Activate the plugin through the Plugins screen.
- Go to Image Fallback in the WordPress admin menu.
- Select or enter your fallback image URL.
- Save settings.
FAQ
Can I use my own fallback image?
Yes. You can choose an image from the WordPress media library or paste an image URL.
Can I stop the plugin from changing specific images?
Yes. Add CSS selectors in the Ignored Images setting. For example, use .site-logo img to skip a site logo.
Does this slow down the website?
The script runs after the page loads and processes images in small batches.
Changelog
1.0.0
- Initial release.
- Added custom fallback image setting.
- Added lazy-loaded image support.
- Added ignored images setting with CSS selectors.
