Title: Variable Height
Last modified: August 20, 2016

---

# Variable Height

 *  Resolved [mhaberling](https://wordpress.org/support/users/mhaberling/)
 * (@mhaberling)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/)
 * Is there a way to set the slideshow height relative to its width?
 * [http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330450)
 * Not yet, I’m sorry. In version 2.2.0 the slideshow’s height will be relative 
   to the slideshow’s width. You’ll then be able to give your slideshow a resolution
   like ’16:9′.
 * I’m hoping to release version 2.2.0 either at the end of this month (January 
   2013) or some time next month.
 *  [tg1](https://wordpress.org/support/users/tg1/)
 * (@tg1)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330452)
 * Hey Stefan,
 * Hoping to catch you online…
 * Can a person click on an image in the slideshow to open a lightbox? Is there 
   any code for that?
 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330461)
 * Hi,
 * The Slideshow plugin doesn’t officially support using a lightbox yet, but it’s
   possible to adapt a line of code so you can. The only disadvantage is that you
   shouldn’t update the plugin afterwards, since you’ll lose the changes to it.
 * If you’ve activated a plugin like [this one](http://wordpress.org/extend/plugins/add-rel-lightbox/),
   look up ‘wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPlugin/
   slideshow.php’ and at line 105 you can add ‘`rel="lightbox"`‘ to the ‘`<a>`‘ 
   tag to make the image pop up as lightbox. The change will make the line look 
   like this:
 * `<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target))
   echo 'target="' . $target . '"'; ?> rel="lightbox">`
 * Best regards,
    Stefan
 *  [tg1](https://wordpress.org/support/users/tg1/)
 * (@tg1)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330470)
 * Thanks Stefan – I will try this!
 *  Thread Starter [mhaberling](https://wordpress.org/support/users/mhaberling/)
 * (@mhaberling)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330487)
 * If I wanted to hardcode in a relative height for the time being where would you
   suggest I do that in the php?
 *  Plugin Author [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * (@stefanboonstra)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330500)
 * I’m sorry, hardcoding a relative height in the current set-up of the plugin wouldn’t
   be an easy change.
 * You could try to change lines 1, 2, 28, 59 and 98 in the aforementioned file 
   to always have a height of 100%, but you’ll then need to give every element that’s
   containing the slideshow a fixed height to make it appear as if the height is
   variable. This isn’t ideal though.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Variable Height’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

## Tags

 * [height](https://wordpress.org/support/topic-tag/height/)
 * [settings](https://wordpress.org/support/topic-tag/settings/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 6 replies
 * 3 participants
 * Last reply from: [Stefan Boonstra](https://wordpress.org/support/users/stefanboonstra/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/variable-height/#post-3330500)
 * Status: resolved