Hi, I want to know to make the portifolio external link to open in a new tab, because it’s opening in the same window, I don’t want my customer leaving my website, how do i do that? if i have to modify some theme file how do i do that in the child theme, so i don’t loose it in the update. My website GSP Sites
this one worked for me
function av_portfolio_new_tab() {
?>
<script>
jQuery(window).load(function() {
jQuery('.grid-image').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'av_portfolio_new_tab');
thanks a lot. GSP Sites