Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1373921
    Eric
    Participant

    Hey I have a shortcode for some social media icons, which work perfectly, however I was wondering if I can add anything to the shortcode so that they would open up in a new window.

    #1373925
    Eric
    Participant
    This reply has been marked as private.
    #1374106
    Joao
    Moderator

    Hi There,

    You will use like this:

    <a href="www.facebook.com"> [icon type=”facebook”] </a>

    Hope it helsp

    Joao

    #1375963
    Eric
    Participant

    Hey sorry but the code that you gave me is what I already use, however like I said, the issue is that the social icons opens in the same tab when I want them to open up in a new tab.

    Any other ideas on how I could achieve this?

    Thanks for the response

    #1376007
    Friech
    Moderator

    Hi There,

    Just add a target="_blank" property to your current code.

    <a href="https://facebook.com/ericbishara" target="_blank">[icon type="facebook"]</a>
    <a href="https://twitter.com/ericbishara" target="_blank">[icon type="twitter"]</a>
    <a href="https://www.linkedin.com/in/ericbishara" target="_blank">[icon type="linkedin"]</a>
    <a href="https://www.instagram.com/ericbishara" target="_blank">[icon type="instagram"]</a>

    Hope it helps, Cheers!

    #1377218
    Eric
    Participant

    Worked perfectly! Thanks a lot.

    #1377528
    Rad
    Moderator

    You’re welcome!

  • <script> jQuery(function($){ $("#no-reply-1373921 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>