Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to bbpress 2.1 links new window?

  • @kardiweb

    Participant

    What can I change to have all links that are posted on the site open in a new window instead of the window that the forum is using? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @anointed

    Participant

    You can do this with jQuery

    jQuery(document).ready(function($) {

    $('a[href^="http://"]').filter(function(){
    return this.hostname && this.hostname !== location.hostname;
    })
    .click( function() {
    window.open(this.href);
    return false;
    });

    });

    Might be able to clean it up a bit and modify it for use with multisite, but it’s a start.

    @kardiweb

    Participant

    Not working : (

    Functions?

    @lynq

    Participant
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar