Easy FancyBox
[resolved] Using title or alt tags of grouped images to link to the next image in group (2 posts)

  1. tunaflyfish
    Posted 2 years ago #

    I'm trying to add the functionality of being able to use the title tags for the grouped images. I want all the titles to show for the grouped images once the lightbox fires and then when the user clicks on another title within the first image it will take them to that image. I've attached a screen shot of what I'm talking about.

    I played around with this post bu instead of firing the link to the current image I want all the links (titles) to show and be clickable when the lightbox fires.

    So Entire left bldg2 on click would take you to that lightbox view.

    The fancybox is being controlled by custom fields where I have area tages in them. Everything works execept the functionality described above.

    One of my custom fields looks like this. `<area id="Enitre left bldg" class="fancybox" rel="lightbox-test" coords="132,366,129,214,86,206,44,280,49,366,131,366" href="/wp-content/uploads/2012/11/officespace.jpg" alt='
    Enitre left bldg1' title="Enitre left bldg1" shape="poly" >`

    With each custom field I use the name new_floor


  2. RavanH
    Plugin Author

    Posted 2 years ago #

    Try the following principle to create your links in the title field:

    Image title | <a href='#' onclick='javascript:$.fancybox.next();return false;'>Next image</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic