add-rel-lightbox now available as WP plugin

add-rel-lightbox, the code discussed in this post is now available in the WordPress Plugin Directory. This means that you can install it in your WordPress site by searching for “add-rel-lightbox” in the `Plugins -> Add New` page of your site administration.

The code is also hosted at github ( for you to pull, fork, alter or adjust (git is my preferred revision controller): improvements are accepted.

To make it work, you will also have to have a lightbox/slimbox/lightbox clone installed on your site — either as a plugin, or as part of your theme, however if one is missing or disabled, add-rel-lightbox will fail gracefully and silently. I’m using “slimbox plugin” (also on the WP Plugin Database), which despite not being listed as compatible, continues to work on my up-to-date WP versions.

That is all.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>