BuddyBoss Home – Web Support Forums Themes Boss. theme Profile Social Links

Viewing 10 posts - 1 through 10 (of 10 total)
  • Question

    #36199

    Anonymous
    @

    Hi,

    By default the social links that appear in a members profile (if they add they’re social links to their profile information) open the link in the same window. How can I set it to open social links in a new window?

    Ryan

    Answers

    #36240

    Alyssa
    Participant
    @alyssa-buddyboss

    @ryanmaler from my testing they are not links, just plain text. I’m not able to click on them. Perhaps that is a feature of your browser or associated browser plugin? Or even a site plugin.

    #36242

    Anonymous
    @

    @tjchester,

    We are thinking of different areas of I think. Right topic though. In the image I attached is it possible to make that social icon open in a new window? I don’t want members leaving my site just to checkout someones facebook page.

    #36246

    Alyssa
    Participant
    @alyssa-buddyboss

    @ryanmaler I understand now. Find line 39 of single.php and add this code within the a tag:
    target="new"
    If that doesn’t work try
    target="_blank"

    #36247

    Anonymous
    @

    @tjchester,

    Neither of those worked out. I moved single.php into my child theme tried each at the end of line 39 just before the closing </a>.

    #36262

    Alyssa
    Participant
    @alyssa-buddyboss

    @ryanmaler sorry it is also on line 57 of buddypress/members/single/members-header.php it will go inside the <a target="new"> tag

    #36271

    Anonymous
    @

    @tjchester,

    I can’t seem to get it to work. What am I doing wrong here?

    Here is single.php (line 39):

    <a target="new" class="btn" href="<?php echo $url; ?>" title="<?php echo esc_attr($name); ?>"><i class="alt-social-icon alt-<?php echo $social; ?>"></i> </a>

    Here is member-header.php (line 57):

    <a target="new" class="btn" href="<?php echo $url; ?>" title="<?php echo esc_attr($name); ?>"><i class="alt-social-icon alt-<?php echo $social; ?>"></i> </a>

    #36276

    Alyssa
    Participant
    @alyssa-buddyboss

    @ryanmaler did you copy the member-header.php in the same folder location in the child theme or did you just put it in the root of the child theme? (it should be in the same file structure)

    #36277

    Anonymous
    @

    @tjchester,

    Rookie mistake. I copied the proper folder in and it’s working now. Thanks.

    #36299

    Alyssa
    Participant
    @alyssa-buddyboss

    Great, I’ll close this out 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • The question ‘Profile Social Links’ is closed to new replies.