If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
October 10, 2012 at 6:00 pm #16971
I wanted to figure out how to make the thumbnail links that lead to single portfolio pages open in new windows instead of in the current window?
Thanks!October 12, 2012 at 10:11 am #93605
I’d use jquery for this task. Open up angular/js/avia.js and replace following code at the very top:
jQuery(".portfolio-sort-container .featured a").attr('target', '_blank');December 17, 2012 at 11:19 pm #93606
Thank you for this!
There is one problem: for the 1st and 2nd portfolio items on the second row of thumbnails, the container is not large enough to make the picture clickable. How do I make it so that when people hover over all of these portfolio thumbnails that they will indeed be able to follow a the link to the single page?
ThanksDecember 18, 2012 at 3:57 am #93607
It looks like those profiles (portfolio items) just don’t have links associated with them. Go to the individual portfolio item and expand the image in the featured images. Where it has the drop down for Link options, select the option you want and then update the item.
DevinDecember 22, 2012 at 3:24 pm #93608
Along a similar line, I’d like my Read More links to open in a new tab as well as my Project URL links in project meta. What’s the best way to make this happen? Thanks!December 25, 2012 at 5:41 pm #93609
Open up angular/js/avia.js and replace following code at the very top:
jQuery(".portfolio-sort-container .featured a, .portfolio-meta-value a, .ajax-portfolio-response a.more-link").attr('target', '_blank');January 3, 2013 at 1:34 am #93610
Solution works great except for the portfolio items on the portfolio page.
I’d like the Project URL links to open in a new window.
I thought portfolio-meta-value a would’ve done the trick–and it does on the individual project pages–but not on my main portfolio page.
Thanks!January 3, 2013 at 3:25 pm #93611
I would actually suggest just passing a _blank target directly in the url for the meta field. If you put in the entire link as an html line it just gets passed through.
So you would put the following in the Project URL meta field:
<a href="thelink.com" target="_blank">www.thesitedisplayedastext.com</a>
DevinJanuary 5, 2013 at 5:23 pm #93612
The topic ‘Make Links to Portfolio Items Open in a New Page’ is closed to new replies.