Source » www.iwingmusic.co.cc
Some people reported that using plugin doesn’t fully work. Mostly it fails to add “nofollow” to page’s links.
Using a lot of plugins will decrease your website performance. I recommend you not to use plugins that aren’t really needed. For instance, you can hack your wordpress copy to put “nofollow” instead of using plugin, except you’re newbie and have no luck on how to do it yourself. But actually no matter you’re newbie or not, you can still do it (like me
) if you follow the steps carefully.
Using “nofollow” is usually to intend to give higher rank to website or to avoid spams for having credit from search engine.
Files:
- /wp-login.php
- /wp-includes/classes.php
- /wp-includes/author-template.php
- /wp-includes/bookmark-template.php
- /wp-includes/category-template.php
- /wp-includes/comment-template.php (No need for version 1.5 & above)
Edit:
- Put
<meta name="robots" content="noindex,nofollow" />
between head tag.
- Search for:
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . esc_attr(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>';and change to:
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" rel="nofollow" title="' . esc_attr(apply_filters('the_title', $page->post_title)) . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>'; - Search for:
function the_author_posts_link($deprecated = '') { global $authordata; printf( '<a href="%1$s" title="%2$s">%3$s</a>', get_author_posts_url( $authordata->ID, $authordata->user_nicename ), esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); }and change to:
function the_author_posts_link($deprecated = '') { global $authordata; printf( '<a href="%1$s" title="%2$s" rel="nofollow">%3$s</a>', get_author_posts_url( $authordata->ID, $authordata->user_nicename ), esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); } - Search for:
$output .= '<a href="' . $the_link . '"' . $rel . $title . $target . '>';
and change to:
$output .= '<a href="' . $the_link . '"' . $rel . $title . $target . ' rel="nofollow">';
- Search for:
$rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? 'rel="category tag"' : 'rel="category"';
and change to:
$rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? 'rel="nofollow"' : 'rel="category"';
Search for:
$rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : '';
and change to:
$rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? ' rel="nofollow"' : '';
Search for:
foreach ( $terms as $term ) { $link = get_term_link( $term, $taxonomy ); if ( is_wp_error( $link ) ) return $link; $term_links[] = '<a href="' . $link . '" rel="tag">' . $term->name . '</a>'; }and change to:
foreach ( $terms as $term ) { $link = get_term_link( $term, $taxonomy ); if ( is_wp_error( $link ) ) return $link; $term_links[] = '<a href="' . $link . '" rel="nofollow">' . $term->name . '</a>'; } - No need


Legit users