need help adding image links to Gallery.php

Ok so I have this template.

https://github.com/JoomShaper/Helix-Joomla/blob/master/helixPlugin/shortcodes/gallery.php

And I want to change the event or function to instead of click an image which is on line 58, to opening the link I would insert in the image on the Joomla side.

Right now once you click an image it opens up the model-box only zooming in on the image. I will have many images all with different links. I need to click the image and open up its link I will insert in it on the joomla side.

You said it:
[PHP][/PHP]

A click on this anchor element would open a modal [php]data-toggle=“modal”[/php]
where it goes is here: [php] ‘#modal-’ . $key . ‘’:’#’[/php]

Without knowing what $key is it’s hard to help, but try changing that entire line to this:
[php][/php]

Notice there is a condition here:
($modal==‘yes’)? ‘#modal-’ . $key . ‘’:’#’
if $modal is set then set the href="#modal-’ . $key" else set the href="#"
I am not sure when a modal wouldn’t be set, maybe if it’s an old browser?

Sponsor our Newsletter | Privacy Policy | Terms of Service