BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Profile Social Links
Tagged: boss, profile, social links
- This topic has 9 replies, 2 contibutors, and was last updated 9 years, 9 months ago by Alyssa.
Question
February 19, 2015 at 2:07 am #36199@
AnonymousHi,
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
February 20, 2015 at 2:34 pm #36240@alyssa-buddyboss
AlyssaParticipant@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.
February 20, 2015 at 3:20 pm #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.
February 20, 2015 at 7:37 pm #36246@alyssa-buddyboss
AlyssaParticipant@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"
February 20, 2015 at 7:52 pm #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>
.February 21, 2015 at 3:34 pm #36262@alyssa-buddyboss
AlyssaParticipant@ryanmaler sorry it is also on line 57 of buddypress/members/single/members-header.php it will go inside the
<a target="new">
tagFebruary 21, 2015 at 4:20 pm #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>
February 21, 2015 at 6:06 pm #36276@alyssa-buddyboss
AlyssaParticipant@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)
February 21, 2015 at 6:12 pm #36277@
Anonymous@tjchester,
Rookie mistake. I copied the proper folder in and it’s working now. Thanks.
February 22, 2015 at 1:28 pm #36299@alyssa-buddyboss
AlyssaParticipantGreat, I’ll close this out 🙂
- The question ‘Profile Social Links’ is closed to new replies.