Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #510673

    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!!

    #510676

    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>" : "";
    
    #511138

    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

    #511282

    oohh GENIUS!!
    works perfect for me
    Thank you very much!

    #511922

    Hi,

    Great, glad we could help :-)

    Regards,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Post-slider thumbnail opens in lightbox instead of going to internal post’ is closed to new replies.