Support » Plugin: Easy FancyBox » Using title or alt tags of grouped images to link to the next image in group

  • Resolved tunaflyfish

    (@tunaflyfish)


    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

    http://wordpress.org/extend/plugins/easy-fancybox/

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH

    (@ravanh)

    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>

Viewing 1 replies (of 1 total)
  • The topic ‘Using title or alt tags of grouped images to link to the next image in group’ is closed to new replies.