Support » Fixing WordPress » Adding lightbox feature to images contained within div

  • 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

    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


  • The topic ‘Adding lightbox feature to images contained within div’ is closed to new replies.