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

    Hi there.

    Essentially I am making a website for an Art gallery. I need the masonry style gallery because its not good when the paintings are cropped off in the thumbnails, especially when dealing with some paintings which have unique designs.

    The website will also sell the paintings however and was hoping there would be a way to stop the light-box appearing when clicked, and instead link to a custom URL which would lead the the relevant product page. If you follow This Link It will show you the two styles, the being the standard woocomerce and the bottom being the masonry style.

    Any help would be greatly appreciated.


    Hi unicityapp!

    I found a trick, open this file /includes/helper-slideshow.php and look for line 655:

    $this->image_array['link'][] = avia_image_by_id($att_id, 'fullsize','url');

    Replace it by:

    $this->image_array['link'][] = $this->image_meta_content[$att_id]['slideshow_caption_title'];

    Then add this to the Quick CSS:

    .masonry-content{ display: none; }

    Now this will take the caption title you set as the link, for example:

    Best regards,


    Hi Josue,

    Thanks for the help and sorry it has taken me a while to respond. However your fix didn’t really work as it only worked on the first image, any others that followed didn’t seem to. Fortunately I discovered I could use HTML in the caption details and instead just put in a link ‘View Product’ in it which I think works well. If you should know of a better fix I wouldn’t mind knowing :)


    • This reply was modified 3 years, 11 months ago by  unicityapp. Reason: Discovered I had been a numpty and left the original code in aswell
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Change the Gallery Light-box to custom URL link’ is closed to new replies.