Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1105547

    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

    #1105927

    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

    #1106224

    Hi,

    Great, I’m glad that you found a solution and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.