Open the project in a new tab

Hi,

Can you help me please with the Projects behaviour after clicking it?

a) After clicking the Project’s picture I need to open the link project in a new tab.
b) When the project has no link inserted I need after clicking simply do nothing.
c) And please, same with clicking the Text of Project’s Title: either open in a “new tab” or if impossible, then at least “do nothing”.

Thank you in advance for your help.

Regards,

Vlad

Hello Vlad,

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
    ;(function($) {

      if( $('.athemes_portfolio_widget').length ) {
        $('.portfolio-item a').attr('target', '_blank');
      }

    })(jQuery);
  1. Update

b) When the project has no link inserted I need after clicking simply do nothing.

I am sorry, there’s no extra code to able to achieve it.

Regards,
Kharis

Thank you Kharis, it works perfectly.

Is there really now way to at least REMOVE the link from Text of Project’s Title and REMOVE the link from Project’s picture to avoid opening at all. So there would be no links at projects which doesn’t have specified any link. That would be also solution for us.

Regards,

Vlad