I am trying to:
display multiple image (thumbnail) with url or create a gallery with url + lightbox 2 column
I visited this URL:
I expected to see:
2 column image that when you click the thumbnail it will display a large version of it through lightbox
Instead, I got:
images
<ul>[wpv-for-each field="wpcf-property-images"]<li style="list-style-type:none;">[types field="property-images" size="medium" url="true" resize="crop" separator=", " output="raw"][/types]</li>[/wpv-for-each]</ul>
Hi Jefrey,
Can you please elaborate a little more so I can better understand? Sometimes screenshots illustrating what you mean may go a long way to clarify what words fail to transmit so if you like make use of "upload an image" below the comment area.
okay basically what currently happens is the images are displayed vertically in one column
image 1
image 2
image 3
image 4
image 5
image 6
what I would like to happen is the images to be displayed
in multiple column but as a thumbnail
thumbnail 1 | thumbnail 2 | thumbnail 3
thumbnail 4 | thumbnail 5 | thumbnail 6
When they click the thumbnail it will open a lightbox containing a large version of the thumbnail
Ok, that can be done through CSS. Is your theme based in some version of Bootstrap?
i am using Enfold but i can apply bootstrap if necessary
Hi Jefrey,
I'll show you a way to display those items in columns through CSS:
[wpv-for-each field="wpcf-property-images"]
<div style="float: left; margin-right: 10px">[types field="property-images" size="medium" url="true" resize="crop" separator=", " output="raw"][/types]</div>
[/wpv-for-each]
Now, in order to implement lightbox you must use some third party plugin.
Please let me know if you are satisfied with my reply and any other questions you may have.
Regards,
Adriano Ferreira
when i put url="true" the image just become text
any recommendation for lightbox plugin?
Hi Jefrey,
Yes, that's right. My apologies for my mistake. The URL true will display the URL in raw way, it has to be false. You should use it as true when you want to display only the URL:
https://toolset.com/documentation/functions/#image
Here you can find goos options: https://wordpress.org/plugins/search.php?q=lightbox
Please let me know if you are satisfied with my reply and any other questions you may have.
Regards,
Adriano Ferreira