WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to make comments links DoFollow default in WordPress (7 posts)

  1. gholem
    Member
    Posted 4 years ago #

    You know all those plugins and stuff that you try to install to make the comments author's links dofollow? I think they're very good and sometimes you should just use them, it depends on what you want.
    But there's another way of making you comments author's links dofollow, directly from WP platform.

    This post it's not about wether is good or not to have dofollow on the comments but just How To and that's all.

    (I beg for your mercy regarding my English skills, as you can see, they're not so great...)

    Go to public_html/wp-includes/comment-template.php

    Around line you should have this, or something like this:

    $return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";

    Just remove the nofollow from there and the links become dofollow.

    Result should be like this:

    $return = "<a href='$url' rel='external' class='url'>$author</a>";

    That's all.

    I've tested this with Search Status addon for Firefox, it seems to be working fine.

  2. gholem
    Member
    Posted 4 years ago #

    ** Sorry for forgoting to say what line of code: it's 148.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    just gotta remember to redo this mod everytime you upgrade, as that file will be replaced each time

  4. flek
    Member
    Posted 4 years ago #

    I have got a real problem. See this site http://deepweblinks.com. It is having a meta noindex nofollow :(

  5. billwynne
    Member
    Posted 4 years ago #

    Thanks gholem and don't worry with those kinds of English skills.
    This is great since it will attract comments if you have good PR.

    RVoodoo, thanks for the note as well.

    Bill Wynne

  6. riple
    Member
    Posted 4 years ago #

    thanks this work for my page

  7. Rabin
    Member
    Posted 3 years ago #

    great worked for me too @india news

Topic Closed

This topic has been closed to new replies.

About this Topic