Full Width Tumblr Photosets

Code / 06 July 2012 / by Josh Hudnall
Estimated reading time: 2 minutes

A while back I needed a way to display Tumblr photosets wider than 500px, the maximum width supported out of the box. Instead of writing my own viewer which would need to be updated any time Tumblr released new layouts, I wrote a JQuery plugin that would expand existing photosets to the width of their container. Simply drop the script in after you’ve loaded JQuery and use the following code to where you place your photoset.

Tumblr recently added the ability to make photosets 700px wide. This plugin will go beyond that.

// Include this
<div class="photoset-wrapper" rel='{JSPhotosetLayout}'>{Photoset-500}</div>

You can get the script on GitHub.