Adding lightbox feature to images contained within div (1 post)

  1. localcreative
    Posted 2 years ago #

    Hello, I;ve been developing a website for a while now and one of the last things I;d like to do is allow users to click an image (that my client will have uploaded) so that the image enlarges in a lightbox.

    The website can be found at http://www.saylescreen.local-creative.co.uk/clients/boztas-orhan/

    The images are pulled in from the client's admin area using the following code -

    if(types_render_field('client-image', array(‘raw’ => ‘false’,‘show_name’ => ‘false’, ‘size’ => ‘thumbnail’))) {
    					echo('<div id="images-client">');
    								echo(types_render_field('client-image', array(‘raw’ => ‘false’,‘show_name’ => ‘false’, ‘size’ => ‘thumbnail’)));

    How would I go about adding a lightbox feature to all of the images pulled into this div?

    Thanks in advance for any help you can offer


Topic Closed

This topic has been closed to new replies.

About this Topic