WordPress.org

Forums

BuddyPress Activity Plus
[resolved] Any chance uploaded links to open in new window instead (3 posts)

  1. GearMX
    Member
    Posted 1 year ago #

    Hi -

    Awesome plugin! Any chance that links can be opened in a new window/tab in the browser instead of just going to the link's address. Thanks

    http://wordpress.org/plugins/buddypress-activity-plus/

  2. Mike
    WPMU DEV Support Staff
    Posted 1 year ago #

    Hi @GearMX

    I'm sure you could do this by editing the plugin files, but then you would loose the changed when updating so that's not a good idea, how about using some jQuery like this:

    $(".activity-inner a[href^='http://']").attr("target","_blank");

    You could also use some proper JavaScript if you don't want to use jQuery, here's where I got the code from:

    http://css-tricks.com/snippets/jquery/open-external-links-in-new-window/

    Hope that helps!

  3. Hey there.

    We haven't heard from you in awhile, so I just wanted to check in to make sure all was good.

    This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. :)

    Hope you have a fantastic day!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.