• Resolved Ownix

    (@ownix)


    Hey Scott,

    I am fairly new with wordpress and web design in general so I am sorry if this is a simple issue.

    Is there any way to make my social buttons open in a new tab?

    Thanks,
    Tory

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ownix

    (@ownix)

    I hope this isnt the wrong way to do it but I may have found a solution.

    I click “editor” under the theme tab and then selected “header.php” and added

    target="_blank"

    to each of my social icons. For example:

    <a class="sociallink TwitterLink" href="<?php echo esc_url('https://twitter.com/' . get_theme_mod( 'twitter_username' ));?>" rel="me">

    becomes:

    <a class="sociallink TwitterLink" href="<?php echo esc_url('https://twitter.com/' . get_theme_mod( 'twitter_username' ));?>" target="_blank" rel="me">

    That’ll do it, but it will be overwritten when you update the theme. If you want the changes to stay, create a child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can social links be configured to open in a new tab/page?’ is closed to new replies.