Free WordPress Plugin - Responsive Image Widget


by Benjamin Robinson


Here is the first freely available plugin we’ve produced! We developed this for the new Living Litehouse blog, but it can be useful in many WordPress deployments.

This is a very simple WordPress widget that displays a single responsive, rationally proportional image in a widget area. It helps make adding images with accurate proportions to sidebar areas quick and easy, and thus avoid a stretched or distorted appearance – without requiring any knowledge of HTML or even an image editing program.

Its key feature is that it allows proportional adjustment on the fly, so the user can easily change the proportion of the image inside of WordPress, instead of needing to resize the image in an editor (a problem for many WordPress users who do not have a lot of experience resizing/cropping images, or who simply don’t have image editing software available.)

It takes in a title, image URL, height to width ratio and target link URL. It outputs a rationally proportional frame (“div”) with the image set as a background. The image always fills the whole horizontal space (100%) of the widget, and can be cropped from the left, right, top, bottom, or centered.

Download the Widget! »

Screenshots of the widget output:

An example of a vertically rational image (height is 200% of the width)

An example of a vertically rational image; the height is 200% of the width.

100% -- Square

Here it is sized at 100% but in square format.

Very horizontal image -- the height is 40% of the width..

Here's the same image sized for a very horizontal image -- the height is 40% of the width..

Installation

  1. Download the widget.
  2. Go to “Plugins > Add new > Upload” in Wordpress, and upload “responsive_image_widget_11.zip” from your computer. Or, unzip and upload “responsive_image_widget.php” to the “/wp-content/plugins/” directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Place widget(s) in your sidebar areas through ‘Appearance > Widgets’ in WordPress
  5. Change the settings to your desiring and save!

(Expected) Frequently Asked Questions

  • Help! The image is gigantic and/or pixelated! The image always fills 100% of the width of the containing element (widget area). In other words, if the widget/widget area where the image is placed is large, the image will be large. So if your original image is only, say 200 pixels wide but the widget is 300 pixels wide the plugin will blow the image up to fill the 300 pixels and create the pixelation.To avoid this kind of pixelation, use an image that is at least as large as the widget area, or preferably larger than the widget area you plan to use it in.

  • Can the image only be placed on the side of the WordPress site like in the screenshots? Absolutely not! Just like all widgets, the Responsive Image Widget can be placed in any widget areas available in the active theme. In the future, we may also update it to include a shortcode feature, too.


Don’t hesitate to shoot us more questions in the comments! With any luck, the widget will soon be officially available through the WordPress Plugin Directory, in addition to here.

UPDATE: The plugin is now officially available on the WordPress plugins directory! That means it can be added directly from WordPress right here!

Related Posts

So, Keokee hosts your email. Now what?

Have you found yourself needing to set up your email again, but can't find the information? Or, are you new to your office? Whatever the reason, follow the steps below to get up and running with your Keokee provided email in a jiffy.

Schweitzer marketer takes his work to the high places

What goes in to becoming a successful marketer? We get that question from clients...

Sandpoint Magazine's Summer 2017 issue is here!

The new issue of Sandpoint Magazine just hit the streets Friday, and it's already creating a buzz with its incredible cover kayaking photo taken by Woods Wheatcroft.

What's up on the Internet: The annual review of trends

An Internet trends guru, Mary Meeker of Kleiner Perkins Caufield & Byers, gave her annual assessment on May 31 at the Code Conference in California. For trend observers, here are some takeaways of major Internet trends

'Keokee presses past quarter century' looks at our history

Keokee hit its silver anniversary in May, marking the 25th year since the company began on a shoestring in May 1990.

Getting started with Wordpress - An intro

While we design custom websites from scratch, we're very big advocates of the industry trend that is putting website content management in the hands of the website owners with easy to use, non-technical tools. One of our favorite platforms for this is Wordpress.

Summer '14 Sandpoint Magazine is out + bonus video!

The new summer issue of Sandpoint Magazine hit the streets on Friday, May 16, and (if we don't say so ourselves) it is packed with excellent stories, photos and art about Sandpoint and our neck of these North Idaho woods.

This project is for the birds. Really is.

One of the most fun projects we have carried out with our own publications the last couple years has been the osprey and eagle cams we stream live onto our community portal website

Nine elements for a smart home page design

As a web designer, I often find myself very concerned with the overall visual appearance of a website: Is it clean enough? Do the fonts look nice? Is it attractive?

'Succeed by adapting': Spokesman-Review's take on Keokee

Every once in a while, Keokee wins a bit of publicity. Here's a story by Michael Guilfoil, for the Spokane Spokesman-Review's Sunday business section.