Photolux – making custom link open in a new tab or window

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.

Question:

How can I make the custom links in the grid gallery open in a new tab or window?

Solution:

You have to open the js/grid-gallery.js file and modify line 707:

openLink='<a href="'+link+'"'+rel+desc+' >';

to be like this:

openLink='<a href="'+link+'"'+rel+desc+' target="_blank">';

Was this useful? 1