Okay
  Public Ticket #638165
Portfolio Link to New Tab
Closed

Comments

  • Spencer started the conversation

    Hi is there an easy (or hard) way to have the portfolio links open in a new tab? I've been putting in links into the "External Project URL" box but I'd love for that to open in a new tab. Any ideas? Thanks

  •  8,838
    Tahir replied

    Hey,

    Its possible with a bit of Custom JS code which would set the target=\"_blank\" of the anchor tags. Please provide page url .

    Best.


    ThemeNectar Support Team 

  • nils replied

    Hi, I\'d like to do this also. What\'s the solution? THX!

  •  8,838
    Tahir replied
    Hey,

    Please provide the page url so that i can write up the custom JS code.
    Thanks


    ThemeNectar Support Team 

  • Nick replied

    Hi,

    I also urgently need the ability for the external project link to open as a _blank link in a new browser window.

    Can you please let me know if there is a solution available?

    Many thanks,

    Nick.

  •  8,838
    Tahir replied

    Hey Guys,

    Add this Custom JS code using this technique: https://themenectar.ticksy.com/article/5528/ .

    <script type='text/javascript'>
    jQuery( document ).ready(function() {
       jQuery('.portfolio-items .col .work-info > a:not([href*=portfolio])').attr('target', '_blank');
    });
    </script>

    Best.


    ThemeNectar Support Team 

  • Nick replied

    Brilliant Tahir, many thanks that did the trick.

    Nick.

  • jjsamra replied

    hello. Does this solution still work and also where do you put the JS code? Thanks.

  •  8,838
    Tahir replied

    @JJ,  You can add it to the Google Analytics Section in the Salient Theme Options Panel . IT would work if you have the same portfolio option active. 

    Best 


    ThemeNectar Support Team 

  • jjsamra replied

    Thank. I have it in there, not working yet. Help me understand what you mean by:

    IT would work if you have the same portfolio option active. 

  •  8,838
    Tahir replied

    @JJ ,

    Please create a new private ticket so we can help you out .

    Best 


    ThemeNectar Support Team 

  • rcuster2 replied

    Found this ticket and was interested in how to add the script so the portfolio feature will open to another tab.

  •  8,838
    Tahir replied

    Hey Again,

    You can add them in here: 

    3369968373.png

    Thanks.


    ThemeNectar Support Team 

  • rcuster2 replied

    Tahir, do you have a script that would have the portfolio post or "details"  open on a new tab in the browser... ?

  •  1,875
    Judith replied

    Hi rcuster2,

    Thanks for writing back.

    Add this Custom JS code in JS custom code under Salient > General settings > CSS/Script Related:

    <script type='text/javascript'>
    jQuery( document ).ready(function() {   jQuery('.portfolio-items .col .work-info > a:not([href*=portfolio])').attr('target', '_blank');
    });
    </script>

    I hope you find this helpful.

    If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help. 


  •  1
    Christy replied

    I just inserted this and my portfolio items are still not opening in a new tab... can you help?

  •  2,958
    Andrew replied

    Hi Christy,

    Thank you for reaching out to us.

    Could you please open a new private ticket so we can check this for you and advise?

    We look forward to hearing from you.

    Thanks,

  •  1
    Christy replied

    Will do. I just purchased a renewal of my license, but I am still unable to post a ticket. I get the message that my license has expired. How long will I need to wait in order to be approved to submit a ticket? Thank you so much for your help-

  •  14
    Laurie replied

    Hm I added in Salient CSS as well as on the page itself to test and not opening in new tab yet either for me...?  Would be a nice addition to Project Configuration Settings :)

  •  1,875
    Judith replied

    Hi Laurie,

    Thanks for writing to us.

    To streamline our communication and ensure the timely resolution of all your inquiries, we kindly request that you open a new ticket for the new set of queries you have. This will allow us to prioritize and address each issue with the attention it deserves, without any potential oversight.

    We appreciate your cooperation and understanding in this matter.

    Best Regards.