5 years, 1 month ago
If someone posts a link on the activity eg: blah blah blah – http://yourlink.com, is it possible to let that link open in a new window? How can this be done?
Something like this will work:
Make sure you change the selector so it matches the activity content container and not the entire document!
Thanks @r-a-y. I found this plugin that seems to do the trick – http://www.semiologic.com/software/external-links/
Cool! Even better!
Surprised that it works with BP!
Didn’t know that plugin. I solved this problem with my own function…
4 years ago
@ali would you mind sharing the function that you used to get the links to open in a new window? The above mentioned plugin is not working for me.
Here is another good plugin for opening external links in new windows.
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service