Lightbox Plus Colorbox
Changing how images are grouped (3 posts)

  1. MC
    Posted 3 years ago #

    I would like to automatically group all lightboxed images on the page automatically, even if they are in different posts. Right now I have it working where I have 1 image per post showing medium size image), with a lightbox popup for the fullsize. Each image pops up with only that image, you have to exit then click the next one.

    What I am describing can currently be seen here - until I figure this out :)

    I see the rel=lightbox[123] code in the page (the value differs for each image), it seems to be adding the page id here automatically when the file is linked to because I don't see it in the embedded html when I view the post source code.

    I would like to override this behavior and always put the same value, say for example "group1" in the brackets:


  2. Dan Zappone
    Plugin Author

    Posted 3 years ago #

    You can do that. You just have to do it yourself and in your <a> element specify rel=lightbox[group1] for all the images.

  3. MC
    Posted 3 years ago #

    That attribute is being set after the fact. I looked in the code and its not there, only when the page is displayed there must be something that appends that to the a tag. It also seems to include the media file number with it or some number which varies by image. I am trying to figure out where this happens so I can modify it slightly, set a fixed value instead:

    what I see it doing roughly is this >

    changing that to >

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic