Convert NoFollow to DoFollow and vice versa

Depending on how you want to build your web site, you might want to work out for the link attributes of your web site, for SEO. There is a way to target your links and change them from nofollow to follow and vice versa.

You can change any of them, to a follow link

function add_custom_script() {
?>
<script>
$( document ).ready(function()
{ $('body > a').attr("rel", "");
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');

or to change a follow to nofollow

function add_custom_script(){
?>
<script>
$( document ).ready(function()
{ $('body > a').attr("rel", "nofollow");
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');

Add that code, to your functions.php file of your theme, and it will do the rest for you. You have to change the body > a with the proper link, based on the styling.

Please do not hesitate to open a new support ticket, if you do need help

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.