WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dunninha
    Member
    Posted 3 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>

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. dunninha
    Member
    Posted 3 years ago #


  3. ulfben
    Member
    Plugin Author

    Posted 3 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

About this Topic