WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. localcreative
    Member
    Posted 1 year 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('<h3>Images</h3>');
    								echo(types_render_field('client-image', array(‘raw’ => ‘false’,‘show_name’ => ‘false’, ‘size’ => ‘thumbnail’)));
    		 		echo('</div>');
    		}

    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

    Tom

Topic Closed

This topic has been closed to new replies.

About this Topic