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

    Hi, Please help. I have created a gallery with client images. I need the images to link to their website.

    How can I do this?

    I know images element has a box where you can link to post, category, custom url etc. I just need that for gallery. Any help will be appreciated.

    Kind regards

    bella_3333

    #123972

    A variation on that…

    I would like put a link on gallery images so that clicking on them opens a video in lightbox.

    There doesn’t appear to be an obvious way to do this.

    Thanx for thinking about this…

    #123973

    Hi,

    @bella_3333: You can use the alt text as an alternative. Click on Gallery element, click on a single gallery image then add the company website on the Alt field. Make sure you include http:// on the domain name like http://www.yoursite.com. Do this for all the images.

    Edit config-templatebuilder > avia-shortcodes > gallery.php then find this code on line 191

    $thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}' title='".$description."' ><img {$tooltip} src='".$img[0]."' title='".$title."' alt='".$alt."' /></a>";

    Replace it with

    $thumbs .= " <a href='".$alt."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}' title='".$description."' ><img {$tooltip} src='".$img[0]."' title='".$title."' alt='".$alt."' /></a>";

    @adrianwalton: I’m not sure if that is possible. Let me tag the rest of the support team.

    Regards,

    Ismael

    #123974

    Thanks, this worked perfectly.

    #123975

    Hey,

    Glad it worked.

    Cheers,

    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Linking gallery images to URL’ is closed to new replies.