• Resolved mfal55

    (@mfal55)


    I have a template generating a loop that includes links which open into a lightbox. I switched to this simple-lightbox due to it’s capability of displaying descriptions on the lightbox. This works great on my wordpress gallery, however, I can’t seem to figure out how to trigger the lightbox within a template through the typical, standard, rel=”group” tag. Can you advise? I even purchased your video upgrade thinking it would work and it doesn’t.

    https://www.ads-software.com/plugins/simple-lightbox/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, SLB provides more robust media support (e.g. displaying descriptions from the media library) and thus does not use the rel attribute. If Please post the loop you are using so I can get a better idea of what you’re trying to do.

    Also, if you’re experiencing an issue with the video add-on beta, you can request support from the Video add-on’s beta page for your issue.

    Thread Starter mfal55

    (@mfal55)

    Hi there – I’m essentially just trying to trigger the lightbox from my href, see the link to vimeo below:

    <?php
    $videoID = get_field('video_id');
    $jsonurl = 'https://vimeo.com/api/v2/video/'.$videoID.'.json';
    $json = file_get_contents($jsonurl,0,null,null);
    $json_output = json_decode($json,true);
    echo '<a href="https://vimeo.com/'.$videoID.'" rel=”lightbox-n”><img src="'. $json_output[0]['thumbnail_large'] .'" /></a>';
    ?>

    in the previous lightbox plugin I was using, all I needed is the rel=”group-name” but it doesn’t seem to be that simple with this. Any advice?

    Plugin Author Archetyped

    (@archetyped)

    Simple! Just replace your echo statement with the following:

    echo slb_activate('<a href="https://vimeo.com/'.$videoID.'"><img src="'. $json_output[0]['thumbnail_large'] .'" /></a>');
    
    Thread Starter mfal55

    (@mfal55)

    thanks so much! this worked. how do I get it to click through a group? is this possible?

    Plugin Author Archetyped

    (@archetyped)

    Yes, enabling grouping in SLB’s settings will add it to the global group.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inserting into template with rel’ is closed to new replies.