WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. GearMX
    Member
    Posted 7 months 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 7 months 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. WPMUDEV
    WPMU DEV Support Staff
    Plugin Author

    Posted 6 months ago #

    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!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.