Viewing 2 posts - 1 through 2 (of 2 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

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

You must be logged in to reply to this topic.