Tagged: custom link, Masonry Gallery
Hello,
I have a masonry galley (12 items) with custom link for each item, but they open in the same page. I wen through entire forum & seems many people want the custom link to open a new page rather than current one. No one seems has suggested a working solution or it requires extensive jquery coding. Is there any way to add this feature to Enfold?
Hi,
Open /enfold/config-templatebuilder/avia-shortcodes/helper-masonry.php and look for line:
$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 target="_blank" href="'.$this->loop[$key]['url'].'"','a'); //opening and closing tag for the masonry container
Regards,
Josue