I recently wrote about implementing Fluidbox in my WordPress theme. That’s all well and good, but that was never meant to be a long-term solution — so I split it off into a plugin of its own.

Right now the plugin, which you can read about on its project page or check out directly on Github, is nothing more than a simple wrapper. It includes the default Fluidbox 1.3.3 (which is the latest, as of this writing) styles and script, plus an extra script to load it on the page and the plugin php to tie it together.

The plugin is far from ideal, and I could submit it to the WordPress plugin directory, but I won’t yet. I still want to add some options.

Right now, the plugin is loaded on every page, regardless of whether it’s needed or not. This is a waste of page load time and server resources, and I plan to fix it.

I also plan to build an options page, allowing you to configure which linked images are targeted by the plugin. Right now, it targets every link that follows this pattern:

<a href="http://somelink.com" rel="lightbox">
  <img src="image.jpg">

WordPress doesn’t add the rel attribute by itself, so you have to do it. I use another plugin, add-rel-lightbox, to take care of that for me. I plan to build in some functionality into my plugin eventually, but for now it’s pretty simple.

Thanks for reading. If you’ve made it this far, here’s a drawing of a shark by my daughter. :)


Fork me on GitHub

Husband. Daddy. Programmer. Artist. I'm not an expert, I just play one in real life.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.