Hi ive found this link: https://kriesi.at/support/topic/how-to-open-portfolio-custom-link-in-a-new-window/#post-232595
But how do i add it to my child theme?
I would like the externalportfolio links to open in a new tab.
Tnx!
Hey c3computers,
Download our child theme here, http://kriesi.at/documentation/enfold/downloads/, and then create a new folder in the child theme named “shortcodes” and then copy the portfolio.php shortcode file from Enfold into that folder and you can do the edit there.
Best regards,
Andy
tnx Andy!
I am trying to edit the portfolio.php like they did in the post i posted. But the lines don’t match anymore? New version?
Do you know how i can get the External links to be opened in a _black (new tab)
Thank you!
Anyone? :)
Hey!
Please find following line
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
and then change it to following
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a target='_blank' href='{$link}'>".$entry->post_title."</a></h2>";
Cheers!
Yigit