Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author arisoft

    (@arisoft)

    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.

    Thread Starter simonpedge

    (@simonpedge)

    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.
    Plugin Author arisoft

    (@arisoft)

    Use the following code:

    <a class="ari-fancybox" href="IMAGE"><img src="THUMB" /></a>

    Thread Starter simonpedge

    (@simonpedge)

    Ok thanks, that will come in handy in the future.

    Nice plugin by the way – like the support for videos, PDFs, GMaps…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Setting the ‘rel tag’ is closed to new replies.