Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Simple Image Widget


Simple Image Widget is what the name implies — the easiest way to add images to your sidebars. Display advertisements, calls-to-action, or even build a slider based on image widgets.

Despite its simplicity, Simple Image Widget is built with extensibility in mind, making it super easy to spin off new image-based widgets, or customize the widget ouput using the available template hierarchy.

Additional Resources


  • A new image widget.
  • The widget after selecting an image.


Install just like most other plugins. Check out the codex if you have any questions.


Is there a way to filter the widget output?

Absolutely. Changing the output can be done a few different ways, but the most common alternatives involve using the “simple_image_widget_output” filter or overriding the template in your theme.

To use the template method, copy “widget.php” from the “/templates” directory in the plugin to a “/simple-image-widget” directory in your theme. Then update as you wish. It’s also possible to create a custom template specific to each sidebar in your theme using the following default template hierarchy:

  • {theme}/simple-image-widget/{sidebar_id}_widget.php
  • {theme}/simple-image-widget/widget.php
  • {plugin}/templates/widget.php

Always use a child theme to make changes if you acquired your theme from a third-party and you expect it to be updated. Otherwise, you run the risk of losing your customizations.

How do I add alt text to images in the widget?

When selecting an image in the media modal (the popup to select images), the right sidebar will be titled “Attachment Details” and contains a field for entering alt text. After entering your alt text, click the “Update Image” button to use the selected image in your widget. Most browsers don’t show the alt text, so you’ll need to view the HTML source to make sure it exists.

How do I center the widget?

The widget can be centered using CSS. Custom CSS should be added a child theme or using a plugin like Simple Custom CSS or Jetpack. The following snippet will center the contents of the widget:

.widget_simpleimage {
     text-align: center;

Can I remove the width and height attributes?

The widget uses the core function wp_get_attachment_image() to display the image and it would be more trouble than it’s worth to remove those attributes. Some basic CSS will typically allow you to make the image responsive if necessary:

.widget_simpleimage img {
    height: auto;
    max-width: 100%;


21 september 2018
Thanks for creating the simple image widget, it’s great! I was able to easily customize the template to finally display widgetized bootstrap cards the way I want.
3 september 2016 1 reactie
Excellent choice for developers. Uses the native WP functions, and thus automatically supports the new responsive image attributes (srcset / sizes) 🙂 The widget template is awesome fun; make it work with Bootstrap 3? No problemo, boss – just add the template to your theme directory, adjust the wp_get_attachment_image() call, and off you go 🙂 Similar to this: echo wp_get_attachment_image( $image_id, $image_size, false, array( 'class' => 'img-responsive attachment-' . $image_size . ' size-' . $image_size ) ); So, if you need flexibility and KNOW what you’re doing – go for it! cu, w0lf.
Lees alle 39 beoordelingen

Bijdragers & ontwikkelaars

“Simple Image Widget” is open source software. De volgende personen hebben bijgedragen aan deze plugin.


“Simple Image Widget” is vertaald in 6 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Simple Image Widget” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.


4.4.2 – October 12, 2017

  • Changed the widget name to “Image (Simple)” to differentiate it from the core image widget introduced in WordPress 4.8.

4.4.1 – September 6, 2016

  • Added missing text domains.

4.4.0 – April 22, 2016

  • Enabled selective refresh in the Customizer.
  • Removed PO and MO files in favor of Language Packs.
  • Prevented errors if the main plugin file is accessed directly.



  • Show media extensions in the post finder modal.
  • Added Dutch translation.


  • Fixed a PHP 5.2 incompatibility that prevented the correct image from showing on the front-end.
  • Fixed a debug notice when searching for attachments in the new find posts modal.


  • Added functionality to search for posts to link images to.
  • Added Japanese translation.
  • Changed the method for generating cache keys. Should provide better support for the_widget() and similar methods.
  • Deprecated the method for flushing a single widget instance from the cache.


  • Added Serbo-Croation translation.


  • Added Finnish translation.
  • Prevent a notice about non-existent title when adding a widget in the Customizer in debug mode.


  • Added the ability to hide widget fields.
  • Added a field to insert HTML classes on the text link. Hidden by default.
  • Removed “the_content” filter from widget text to prevent other plugins from appending content.
  • Renamed /scripts to /js and /styles to /css.
  • Improved handling of fields that have been removed in child widgets.


  • Fixed the reference to the widget’s parent class to prevent an error.


  • Allow more HTML tags in the text field.
  • Updated customizer support and prevent cache poisoning.
  • Added French translation.


  • New template system to make it easier to override the output.
  • Restructured to make it more intuitive for developers to extend the widget.
  • Moved legacy support into a separate class that hooks into the widget.
  • Works with the Widget Customizer added in WordPress 3.9.
  • Improved compatibility with plugins like Page Builder by SiteOrigin.


  • Fixed a slash preventing custom translations from loading.
  • Dropped the text domain from custom translation filenames.
  • Loading the text domain earlier so the widget title and description can be filtered.
  • Minor code formatting updates.


  • Fixed PHP class name formatting.
  • Added ‘link_open’ and ‘link_close’ args to the $instance when rendering the widget display.
  • Added a ‘simple-image’ CSS class to the image wrapper.


  • Implemented feature for opening links in a new tab/window.
  • Fixed a bug preventing links in legacy widgets to not work.


  • Removed the main plugin file for the previous version.


  • Complete rewrite with new media manager support.