Tagged: Lightbox, post slider, thumbnail
Hi Team!
Im using a post-slider like a agenda that only shows the flyer of the event, title and date… thats all fine
What I want is to not have a internal post, just to open a lightbox with the flyer when user clicks the tumbnail…
So, i did this in postslider.php:
$output .= $thumbnail ? “{$thumbnail}” : “”;
Now it opens in the lightbox but appears an error… I know I need to change the href='{$link}’ for something like $imageURL… but it do not work…
Any help?
Thanks a lot!!
Sorry… the code is this:
$output .= $thumbnail ? "<a href='{$link}' rel='lightbox' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
Hi!
Thank you for using Enfold.
Try to replace the whole block with this:
$thumbnailurl = wp_get_attachment_url( get_post_thumbnail_id($entry->ID) );
$output .= $thumbnail ? "<a href='{$thumbnailurl}' rel='lightbox' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
Cheers!
Ismael
oohh GENIUS!!
works perfect for me
Thank you very much!