• Hello, I’d like the links for each project under “Current Projects” to open in a new tab but I can’t figure out how to do so. Any help is appreciated!

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi,

    Thank you for reaching out to us.

    Try doing the below steps:

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    
    jQuery(function($) {
    
      if( $('.widget_athemes_portfolio').length ) {
        $('.portfolio-section .portfolio-item').each(function(){
          var link = $(this).children('a').attr('href');
          if(link != undefined) {
            $(this).children('a').attr('target', '_blank');
            $(this).children('.portfolio-content').find('a').attr('target', '_blank');
          }
        });
      }
    
    });
    

    4. Update

    Let me know how it goes.

    Regards,
    Kharis

Viewing 1 replies (of 1 total)
  • The topic ‘Projects links to open in new tab’ is closed to new replies.