Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #590066

    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?

    #591182

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.