• I do not want to add a plugin for this problem because they seem too complicated. Is there any way someone can wave a wand and remove the nofollow attribute or tell me how.
    I do not know where to add code except using the header and footer plugin. Please give me the magical spell/code that can be added in the header tag.
    Thank you!!!!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • try this, it should remove all ‘nofollow’ from all links regardless:

    <script>
    jQuery('document').ready(function(){
    	jQuery("a[rel~='nofollow']").each(function(){
    		jQuery(this).attr('rel', jQuery(this).attr('rel').replace('nofollow',''));
    	});
    });
    </script>
    Thread Starter Clorinda Donovan

    (@keepreading52)

    Hello there,
    thank you for reaching out. Can you please tell me where I should add the code?
    I added it to my header but nothing seems to have happened. SEMrush still says that my links have a nofollow attribute. I have already checked my plugins so that they are not forcing the nofollow attribute (Rank Math and Jetpack).
    Any help is hugely appreciated. You have the right to roll your eyes at a novice and ignorant ??

    @keepreading52
    try putting it in your footer.php right before the closing </body> tag.

    Thread Starter Clorinda Donovan

    (@keepreading52)

    So I put the code the bottom of my themes PHP file. I do use the Kadence WP theme that has an update every three days. Is that a problem?
    Anyway thank you for your help and the code.

    Thread Starter Clorinda Donovan

    (@keepreading52)

    This is a resolved topic, so it can be closed. Thank you for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do I remove the WordPress nofollow’ is closed to new replies.