how to remove noindex nofollow from wordpress

how to remove noindex nofollow from wordpress

There are many SEO wordpress plugin which insert the nofollow attribute in link. Using our code you can remove noindex nofollow from wordpress website. If you want to remove the nofollow attribute in link then just use the following code.

how to remove noindex nofollow from wordpress

Open your functions.php file from your wordpress theme folder and put following code in that file.


function remove_nofollow($string) {
$string = str_ireplace(' rel="nofollow"', '', $string);
return $string;
}
add_filter('the_content', 'remove_nofollow');

how to remove noindex nofollow from wordpress
how to remove noindex nofollow from wordpress

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.