Unlike Lightbox 2.5.x, the 2.6.0 release includes a bit of code that automatically inserts the lightbox attribute to every link in your posts that directly refers to image files (.bmp, .gif, .jpg, .jpeg, .png). This means you no longer have to add the rel="lightbox[xxx]“ attribute to your links manually; it is done for you. This also means that previous posts you made where you DID insert the code manually will include TWO rel=”lightbox[xxx]” attributes!…just so you know…















How do you handle gifs, that should noch have a lighbox formate, like additional icons, arrows or something like that? Could I add a stylesheet class definition to the lightbox plugin?
I checked out your blog and understand your issue. You obviously want Lightboxing on for images posted on your blog entries, but want to exclude some from being Lightboxed because they’re symbols or icons (for example the rss image). There are a number of ways in solving this.
Removing the ‘a’ tag from those images will prevent them from being Lightboxed because the images will not be linked to anything. This is probably the best way to prevent images from being lightboxed accidentally
Manually setting a rel attribute will prevent images from being lightboxed as well. By expanded links with something like rel=”nolightbox” autolighboxing will skip the image.
This is also a reference to point number 1 (remove the link tag from your images). If you’re using Wordpress to import images to your posts, take some time to remove unwanted tags from the auto-generated code.
Thanks, it was quite helpful.
In my new blog (not online yet) with wp 2.6. lightbox doen’t work at all.