How to target_blank portfolio link ?

SupportCategory: Ta MeghnaHow to target_blank portfolio link ?
Mathieu Staff asked 2 years ago

In TA-Meghna theme, how can I put a target_blank for all portfolio link ? The link inside the portfolio.
Thanks!

7 Answers
Rohit Staff answered 2 years ago

Hello, please open the file ‘ta-meghna/js/grid.js’ and add a new line ‘this.$href.attr( ‘target’, _blank );’ blow line 411.

Mathieu Staff answered 2 years ago

That works when you click on the portfolio image. But what I look for is more when you click on the protfolio item, it show the image and the text beside, and the portfolio url link with the button. Need that link to open in new page.
And seem that the line added ‘this.$href.attr( ‘target’, _blank );’  make the slideshow image resize to mobile size… I remove the line and the slider goes back to normal.
Looking forward to find an other solution. Thanks soo much for your support.

Rohit Staff answered 2 years ago

Hello, please provide me the access to your WordPress dashboard (admin role) and FTP server via Private Message, I’ll test the modification. Thanks!

Rohit Staff answered 2 years ago

Hello, I can’t login to your WordPress dashboard, as you are using Clef. I’ve made some changes, but I can’t delete cache to debug. Please delete your site cache and try again. Thanks!

Mathieu Staff answered 2 years ago

Wow thanks it works ! I use Clef, but I actually uninstall the plugin to let you access. I just delete the cache and now links open in new tabs ! Exactly what I need ! Thanks so much Kevin !
And by the way, how did you do ?

Rohit Staff answered 2 years ago

Hello, it’s my mistake. The codes should be ‘this.$href.attr( ‘target’, ‘_blank’ );’.

Mathieu Staff answered 2 years ago

Ok great, thank you so much !