Hello,
Could you explain in more details where you want to set “rel” tag? The plugin attaches the lightbox to existing elements, for example to galleries. Galleries are generated by gallery plugins and all attributes are added by the plugins.
Ja, sure thing! If I created a custom post type, and one of the custom meta fields was an image (e.g. through PODS ACF, ToolSet Types), and I wrote some PHP to loop through posts of that CPT.
Typically I could do a:
<a rel='lightbox' href='IMAGE'><img src='THUMB' /></a>
within the loop. Then by installing a WP Lightbox plugin that allows mapping to a ‘rel’ attribute value of ‘lightbox’, this would work fine.
-
This reply was modified 7 years, 9 months ago by
simonpedge.
Use the following code:
<a class="ari-fancybox" href="IMAGE"><img src="THUMB" /></a>
Ok thanks, that will come in handy in the future.
Nice plugin by the way – like the support for videos, PDFs, GMaps…