Title: Remove Broken Images
Author: Room 34 Creative Services, LLC
Published: <strong>22 Novembre 2021</strong>
Last modified: 19 Maggio 2026

---

Ricerca i plugin

![](https://ps.w.org/remove-broken-images/assets/banner-772x250.png?rev=2633771)

![](https://ps.w.org/remove-broken-images/assets/icon.svg?rev=2633771)

# Remove Broken Images

 Di [Room 34 Creative Services, LLC](https://profiles.wordpress.org/room34/)

[Scarica](https://downloads.wordpress.org/plugin/remove-broken-images.1.5.1.zip)

 * [Dettagli](https://it.wordpress.org/plugins/remove-broken-images/#description)
 * [Recensioni](https://it.wordpress.org/plugins/remove-broken-images/#reviews)
 * [Sviluppo](https://it.wordpress.org/plugins/remove-broken-images/#developers)

 [Supporto](https://wordpress.org/support/plugin/remove-broken-images/)

## Descrizione

This is an extremely simple plugin that uses jQuery to remove broken images from
displaying on your pages.

Note that version 1 does _not_ alter any content in the database, nor does it remove
the image tags from the initial HTML output of the page, so it doesn’t stop 404 
errors, nor does it benefit SEO or PageSpeed scores. It does, however, prevent the
dreaded “broken image” icon from appearing in your pages, and in most cases it will
remove the blank space some browsers allocate for images as they are loading.

**Coming in version 2:** We’ll be adding an admin tool to let you see a list of 
posts and pages containing broken images, along with a tool to automatically remove
their `img` tags from the database.

## FAQ

### I installed and activated the plugin. Now what?

That’s it! There is no configuration necessary. The plugin adds a compact bit of
JavaScript that detects if an image is returning a 404 error, and removes its HTML
code from displaying on the page.

### Does this plugin delete the image code from my page/post in the WordPress database?

No, version 1 does not make any changes whatsoever to your database. It also does
not remove the missing image file’s URL from the HTML that is sent to the user’s
web browser; it removes the tags from the DOM (Document Object Model) _after_ the
page has been loaded, using JavaScript, to prevent “broken image” icons, extra white
space, and links/captions associated with those missing images from displaying.

### How can I redirect to the home page when an image is missing on a post?

The `r34rbi_missing_image` jQuery hook (added in version 1.4.0) allows you to modify
the plugin’s behavior with custom code, whenever a missing image is encountered.
It is used by the `r34rbi_redirect_on_missing_image` PHP filter (also added in version
1.4.0) to easily redirect to the home page in this situation, by adding this snippet
of PHP code to your theme:

    ```
    add_filter('r34rbi_redirect_on_missing_image', '__return_true');
    ```

You can replace `'__return_true'` with a custom callback function to change the 
redirect URL to something other than your site’s home page.

## Recensioni

![](https://secure.gravatar.com/avatar/4c212aa9194ee8404b972a91a737e456042650b28f3dfaa148bf542aa10b6be9?
s=60&d=retro&r=g)

### 󠀁[Change your Title](https://wordpress.org/support/topic/change-your-title/)󠁿

 [emj99](https://profiles.wordpress.org/emj99/) 20 Marzo 2026 1 risposta

What’s with the misleading title? The “Remove Broken Images” plugin does NOT remove
broken images! W..

![](https://secure.gravatar.com/avatar/0b13e887ebe1648e87a4a6d92931a022789ed3d795d1c4e987b9b97a2be93119?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9104/)󠁿

 [David](https://profiles.wordpress.org/buy4me/) 12 Aprile 2024

Excellent plugin

![](https://secure.gravatar.com/avatar/4a0a17fb7ceb0da953896ae0b94721a57751e1486abe4dd44fa4c9fd7db16a2e?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-8918/)󠁿

 [vexxy](https://profiles.wordpress.org/vexxy/) 30 Novembre 2023

This plugin is a lifesaver. Cant wait for v2 to remove the images. Keep up the good
work fellas!

![](https://secure.gravatar.com/avatar/aad984c4baa4f386606f81aff8baca870f38d781330a111b4324c6ac2d93d2fb?
s=60&d=retro&r=g)

### 󠀁[Works Perfectly](https://wordpress.org/support/topic/works-perfectly-2537/)󠁿

 [branchd85](https://profiles.wordpress.org/branchd85/) 16 Ottobre 2022

Removed the broken links I wanted to remove perfectly. Thank You

 [ Leggi tutte le recensioni di 4 ](https://wordpress.org/support/plugin/remove-broken-images/reviews/)

## Contributi e sviluppo

“Remove Broken Images” è un software open source. Le persone che hanno contribuito
allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Room 34 Creative Services, LLC ](https://profiles.wordpress.org/room34/)

[Traduci “Remove Broken Images” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/remove-broken-images)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/remove-broken-images/)
segui il [repository SVN](https://plugins.svn.wordpress.org/remove-broken-images/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/remove-broken-images/)
tramite [RSS](https://plugins.trac.wordpress.org/log/remove-broken-images/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.5.1 – 2026.05.18

 * Refactored code to pass [Plugin Check](https://wordpress.org/plugins/plugin-check/)
   tests.
 * i18n: Changed text domain to `remove-broken-images`.
 * Bumped “Tested up to” to 7.0.

#### 1.5.0 – 2024.10.04

 * Features:
    - Added logic to remove SEO `meta` tags for `og:image` and `twitter:image` if
      they match the URL of an image the plugin is removing from the page content.
    - Expanded logic from 1.4.1 by adding a check for the Block Editor page.
 * Development:
    - Refactored code into `R34RBI` class.
    - Created framework for admin settings page (not currently active, but will 
      be used for version 2.0 features).
    - Set `$translate` input parameter to `false` on `get_plugin_data()` call, as
      it may cause PHP notices as of WordPress 6.7. See the [WordPress Trac](https://core.trac.wordpress.org/ticket/62154#comment:8)
      for more details.
 * i18n:
    - Added `.pot` file for translation support.
 * Bumped “Tested up to” to 6.7.

#### 1.4.1 – 2024.04.23

 * Added logic to prevent plugin’s code from loading on admin or login pages.

#### 1.4.0 – 2024.04.09

 * Added `r34rbi_missing_image` jQuery hook to allow custom functionality to override
   the plugin’s default behavior when a missing image is encountered. Also added`
   r34rbi_redirect_on_missing_image` PHP filter, to allow for an easy application
   of this functionality in your theme. See FAQs for code example.
 * Bumped “Tested up to” to 6.5.

#### 1.3.1 – 2023.07.23

 * Re-minified JS.
 * Bumped “Tested up to” to 6.3.

#### 1.3.0 – 2021.12.21

 * Added handling for `img` tags inserted dynamically into the DOM via AJAX.
 * Added minified `script.min.js` file to reduce page payload.
 * Reformatted source JavaScript code for legibility and added comments.

#### 1.2.0 – 2021.11.22

 * Refactored all of the plugin’s logic into jQuery, eliminating the need for using`
   the_content` filter to insert `onerror` into all `img` tags.

#### 1.1.0 – 2021.11.22

 * Added separate `script.js` file; moved JavaScript logic from inline `onerror`
   attribute to a function that will also remove parent `a` element and ancestor`.
   wp-caption` element from the DOM, in addition to the `img` tag itself.

#### 1.0.0 – 2021.11.20

 * Original version.

## Meta

 *  Versione **1.5.1**
 *  Ultimo aggiornamento **2 settimane fa**
 *  Installazioni attive **900+**
 *  Versione WordPress ** 4.9 o superiore **
 *  Testato fino alla versione **7.0**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/remove-broken-images/)
 * Tag
 * [broken images](https://it.wordpress.org/plugins/tags/broken-images/)[media library](https://it.wordpress.org/plugins/tags/media-library/)
   [missing images](https://it.wordpress.org/plugins/tags/missing-images/)[remove](https://it.wordpress.org/plugins/tags/remove/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/remove-broken-images/advanced/)

## Valutazioni

 4 su 5 stelle.

 *  [  3 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/remove-broken-images/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/remove-broken-images/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/remove-broken-images/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/remove-broken-images/reviews/?filter=2)
 *  [  1 1- recensioni a stelle     ](https://wordpress.org/support/plugin/remove-broken-images/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/remove-broken-images/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/remove-broken-images/reviews/)

## Collaboratori

 *   [ Room 34 Creative Services, LLC ](https://profiles.wordpress.org/room34/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/remove-broken-images/)

## Donazioni

Vuoi sostenere le versioni future?

 [ Fai una donazione per lo sviluppo ](https://room34.com/payments)