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 = 'http://vimeo.com/api/v2/video/'.$videoID.'.json';
$json = file_get_contents($jsonurl,0,null,null);
$json_output = json_decode($json,true);
echo '<a href="http://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?
Simple! Just replace your echo statement with the following:
echo slb_activate('<a href="http://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?
Yes, enabling grouping in SLB’s settings will add it to the global group.