WordPress.org

Support

Support » Plugins and Hacks » Changing how images are grouped

Changing how images are grouped

  • 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 🙂
    http://cabinetry-solutions.com/tag/standard-appliances/

    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:
    rel=lightbox[group1]

    http://wordpress.org/extend/plugins/lightbox-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dan Zappone

    @dzappone

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

    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 >
    rel=lightbox[$fileid]

    changing that to >
    rel=lightbox[fixedstring]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing how images are grouped’ is closed to new replies.