Okay
  Public Ticket #3409592
Social Icons target attribute
Closed

Comments

  •  1
    darlon started the conversation

    I enabled social icons via Appearance > Widget > Footer 1 ....however they open on same page, how can I make social icons links open on new tabs? Thanks.

  •  8,839
    Tahir replied

    Hey Again,

    That should not be the case. Could you provide the page url so we can check ?.

    Thanks.


    ThemeNectar Support Team 

  •   darlon replied privately
  •  8,839
    Tahir replied

    Hey Again,

    Try adding the Social Icons using the Footer Copyright section instead. See screenshot: 

    6060489822.png
    7351955949.png

    as the native Social blocks dont have a feature to set the Target on the links.

    Thanks.


    ThemeNectar Support Team 

  •  1
    darlon replied

    I was thinking theres a script i could use to make it up? Thats where I want the social icons to be. Your options would move the icons further down.

  •  8,839
    Tahir replied

    Hey Again,

    Try using this script and check:

    <script type='text/javascript'>
    jQuery( document ).ready(function() {
    jQuery('.wp-social-link a').attr('target', '_blank');
    });
    </script>

    Thanks 


    ThemeNectar Support Team 

  •  1
    darlon replied

    I got an error when i tried adding it inside the box on Appearance > Customize >:

    • Markup is not allowed in CSS.

    So where actually do I add the code, thanks

  •  8,839
    Tahir replied

    Since its JS code you will have to add it here: 

    1980779871.png

    Thanks 


    ThemeNectar Support Team 

  •  1
    darlon replied

    Works just fine, thanks very kindly for the prompt, professional, technically deep, and beautiful support.