I’ve previously described a method for this with the Salutation theme. These themes are very similar in this area so the instructions should be similar if not exactly the same. Below are the instructions I gave for Salutation. To avoid confusion I have removed any line numbers or other theme specific references that may be incorrect. This may require some minor differences but the concept is the same.
Here is a little trick you can do. Open the file “template-portfolio.php” and you’ll find code that resembles this:
// linking
$title = get_the_title(); // if media Title entered
$class = '';
switch (strtolower(trim($sc['link']))) {
case 'none':
$URL = '';
break;
case 'post':
$URL = get_permalink();
break;
case 'lightbox':
default:
$URL = wp_get_attachment_url($thumb); // original image
if (get_meta('media_url')) $URL = get_meta('media_url'); // if media URL entered
if (get_meta('media_title')) $title = get_meta('media_title'); // if media Title entered
$class .= 'popup';
}
You can edit this code by adding an additional “case” for “new” which should go just after “none” case and before the “post” case with the code shown below:
case 'new':
$URL = wp_get_attachment_url($thumb); // original image
if (get_meta('media_url')) $URL = get_meta('media_url'); // if media URL entered
if (get_meta('media_title')) $title = get_meta('media_title'); // if media Title entered
break;
Now you can get links to open in a new window by inserting your URL into the “Media” box from the “URL” field of your page/post edit screen. This is where you would normally enter the video link.
To trigger the shortcode to use the external link from the Medai field, set the “link” parameter to “new” as shown below:
[portfolio category="7" columns="4" content_width="926" image_ratio="4:3" link="new"]
This will open the link of the Media URL field for each of your portfolio items when they click the image or title.