WordPress setting nofollow links and not dofollow
-
I’m having an issue where WordPress is creating nofollow links out of my text links when it should be dofollow.
Anyone know why this is?
Thanks
The blog I need help with is: (visible only to logged in users)
-
Hi there,
Can you please let me know on which of the three sites under your WordPress.com account you’re having this issue?
-
past this code in theme functions.php
//start-from post
write this function in functions.php
function qq_remove_nofollow($string) {
$string = str_ireplace(‘ rel=”nofollow”‘, ”, $string);
return $string;
}
add_filter(‘the_content’, ‘qq_remove_nofollow’);
//end-from post -
or past this code in theme functions.php
///////start-from post and comments
function rr_remove_nofollow($string) {
$string = str_ireplace(‘ rel=”nofollow”‘, ”, $string);
return $string;
}
add_filter(‘the_content’, ‘rr_remove_nofollow’);
add_filter(‘comment_text’, ‘rr_remove_nofollow’);
//////end-from post and comments -
- The topic ‘WordPress setting nofollow links and not dofollow’ is closed to new replies.