Making gallery custom links open in a new tab

Please Note: Theme customizations go beyond the scope of our support services and this article is provided solely as a courtesy to our customers. Please take a moment to review the Scope of our Support.

In order to make the custom link items in the gallery open the links in a new browser tab/window, you have to open the js/grid-gallery.js file and modify line 1138:

<% if({ %><a href="<%= link %>" rel="<%= rel %>" title="<%= title %>"><% } %>\

to be like this:

<% if({ %><a href="<%= link %>" rel="<%= rel %>" target="_blank" title="<%= title %>"><% } %>\

Was this useful? 2