To whom it may concern,
I have some portfolio items and I would like to have the “Link portfolio item to external URK) to open in a new tab.
Is that possible please?
Regards
Hey,
Thanks for contacting us!
Please edit your element and go to Advanced > Developer Settings and give your element a custom ID (“blank-target” in example below) and then add following code to bottom of Functions.php file of your child theme
function av_portfolio_new_tab() {
?>
<script>
jQuery(window).load(function() {
jQuery('#blank-target a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'av_portfolio_new_tab');
Best regards,
Yigit
Hey,
Please edit your Portfolio Grid or Masonry element that you are using to display your portfolio items and give it a custom ID.
If you need further assistance with it, please point out the page where you are displaying your portfolio items and post temporary admin logins here privately :)
Regards,
Yigit
Worked perfectly thank you so much :D
Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit