Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #208372

    Hi there,

    is there a possibility to open the picture in a lightbox? I want to link from the home-page to the blog-page and then the single picture should be open in a lightbox.
    It´s a photoblog and every post is in picture format.

    http://www.seegers-fotografie.de (homepage)
    http://www.seegers-fotografie.de/frohes-neues-jahr/ (example blog-page)

    Thank you and greeting from Germany!

    #208501

    Hi,

    Open config-templatebuilder/avia-shortcodes/masonry_entries.php and look for line 748:

    $this->loop[$key]['html_tags'] = array('a href="'.$this->loop[$key]['url'].'"','a'); //opening and closing tag for the masonry container
    

    Replace it by this:

    $this->loop[$key]['html_tags'] = array('a href="'.wp_get_attachment_image_src($this->loop[$key]['thumb_ID'], 'full')[0].'"','a'); //opening and closing tag for the masonry container
    

    Regards,
    Josue

    #340475

    Hi Josue,

    you can close the Topic.
    Thanks for your help!

    best regards, Tim

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘open (enlarge) picture in lightbox’ is closed to new replies.