Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add nofollow to links

Viewing 7 replies - 26 through 32 (of 32 total)
  • @cwdnow

    Participant

    This is driving me crazy. I cannot get any of the target=”_blank” or “nofollow” plugins to work. I’m using the default kakumei theme with the latest WordPress installation. Has the plugin code changed?

    @cordoval

    Member

    hi ya’ll

    I am sorry I was not back earlier on this post but I have managed to solved everything without touching the core and my method is extensible to whatever you want to do.

    //add target=_blank to post links

    function bb_target_blank( $text ) {

    return preg_replace_callback('||i', 'bb_target_blank_callback', $text);

    }

    function bb_target_blank_callback( $matches ) {

    $text = $matches[1];

    return "";

    }

    add_filter(‘post_text’, ‘bb_target_blank’);

    If you require further support then you can always reach to me at cordoval at gmail dot com and you can send me a small token of your appreciation via paypal. Thanks.

    @cordoval

    Member

    all the code got messed up while posting on here, I wrapped it between but would not work properly someone does know how to make it look pretty?

    @engin1984

    Participant

    @ant123

    https://bbpress.org/forums/topic/add-nofollow-to-links#post-74079

    works for me and

    https://bbpress.org/forums/topic/nofollow#post-58232 is work for me too (bbsignatures)

    and all links is nofollow now. Thanks

    @cwdnow

    Participant

    Looks like nofollow is automatically added since bbPress 1.0.3? Is there a way to add links now that aren’t tagged with nofollow?

    @brightonseo

    Participant

    This is very odd?
    Before the recent update, the links on my forum were showing as nofollow but since the update they have all gone back to dofollow>(

    How can I get them to revert back to nofollow?

    Don’t you just hate it when people keep fingering things that work.

    @brightonseo

    Participant

    BTW this is with version 2.2.4

Viewing 7 replies - 26 through 32 (of 32 total)
  • You must be logged in to reply to this topic.
Skip to toolbar