WP jQuery Lightbox
Grouping images and not grouping some (3 posts)

  1. dunninha
    Posted 4 years ago #

    I am using the lightbox plugin and have checked the box that allows me to add my own rel code. However it won't let me group images using a group tag and labeling them image #1, image #2 etc. I want to make a bunch of different groups and would use a different group tag for each.

    Below is the code I am using for this site hollydunning.com/home/portfolio

    Any advice? Thanks!!

    <a rel="lightbox[test]">image #1</a> <a href="http://www.hollydunning.com/wp-content/uploads/2010/10/425_septoct_Puyallup-Fair-Day-Trip_firstpage.jpg"> <img class="alignleft size-thumbnail wp-image-29" title="425 magazine // Sept.Oct 2010 // Premier Media Group" src="http://www.hollydunning.com/wp-content/uploads/2010/10/425_septoct_Puyallup-Fair-Day-Trip_firstpage-150x150.jpg" alt="" width="150" height="150" /></a>
    <a rel="lightbox[test]">image #2 </a> <a href="http://www.hollydunning.com/wp-content/uploads/2010/10/425_septoct_Puyallup-Fair-Day-Trip_page2.jpg"><img class="alignleft size-thumbnail wp-image-30" title="425 magazine // Sept.Oct 2010 // Premier Media Group" src="http://www.hollydunning.com/wp-content/uploads/2010/10/425_septoct_Puyallup-Fair-Day-Trip_page2-150x150.jpg" alt="" width="150" height="150" /></a>


  2. dunninha
    Posted 4 years ago #

  3. ulfben
    Plugin Author

    Posted 4 years ago #

    The checkbox means that the plugin automatically adds lightbox to image links which doesn't already have it.

    You can still combine the automatic grouping with your own groups - but you need to apply the rel='lightbox[groupname]' to the image link, which you're not doing in the code above.

    The lightboxing goes here:
    <a href="http://www.hollydunning.com/wp-content/uploads/2010/10/425_septoct_Puyallup-Fair-Day-Trip_firstpage.jpg" rel="lightbox[test]">

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic