Your template is already integrating FancyBox. Using a plugin will conflict with it.
Give the image LINK the attributes class="fancybox" title="Head Cheese"
and the box should work on it with title showing.
Perfect, thanks! What about the description, is it possible to add that as well? I tried using description=”something” but it didn’t work.
Nope, FancyBox only takes one value.
In fact you can change the title by the description. Find the loop who call the image and the title and replace :
title=”<?php echo $photo->post_title; ?>”
by
title=”<?php echo $photo->post_content; ?>”
Example of loop : `
<a id=”fancy_gallery<?php echo $key; ?>” href=”<?php echo $full_image_url[0]; ?>” rel=”gallery” <?php if(!empty($pp_display_image_title)) { ?> title=”<?php echo $photo->post_content; ?>” <?php } ?><img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/white_slider_handle.png” alt=””/></a>`
if you need to have also the title and the legend in fancybox, just write it in you description area, because it’s take html instructions like </br>, etc…
This is the aesiest way i found to have my description in fancybox.
one more thing : in your description you can also have link, just you have to take care of how you write your quoted :
use single quoted not double quoted :
<a href='example.com'>work</a>
instead of
<a href="example.com">doesn't work...</a>
Hi oliviadesens, in which file can I find the loop?