221 comments found

human88 Purchased

hello, again!

I want to make the title or the caption of the image in colorbox visible on a gallery-page?

thanks ;)

EugeneO

You would have to add a title attribute to the two image links in page-gallery.php.

The two lines are:

<a class="hover-icon" rel="lightbox" href="<?php echo $image_src[0]; ?>"></a>

and…

<a class="image-direct-link" rel="lightbox" href="<?php echo $image_src[0]; ?>"></a>

You can echo the $alt_text variable inside the title attribute to output the image caption.

Example:
<a class="hover-icon" rel="lightbox" href="<?php echo $image_src[0]; ?>" title="<?php echo $alt_text; ?>"></a>
by
by
by
by
by
by