Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Making RSS Feed Links no-follow in WordPress Sidebar

September 29, 2012 2 Comments

If you use the RSS widget in WordPress to bring in a Feed with multiple external links that go to external content and that update in the sidebar.  You may notice that all these links have the attribute set to ‘follow‘ by default.

This can be detrimental to your page’s SEO status in terms of page authority and distribution of PageRank – the best thing is to switch these links to the attribute of ‘no-follow’. This is done by editing one of the core WordPress files, the only thing you have to remember is to check when you upgrade WordPress that the change is not overwritten in which case you will have to apply the change again.

Open default-widgets.php in the document root under wp-includes/

public_html/wp-includes/default-widgets.php

The link attribute we need to add in 3 times is:

rel='nofollow'

Either replace the whole line or just add in where it is positioned below:

Line 768 needs it twice

$title = "<a class='rsswidget' href='$url' rel='nofollow' title='" . esc_attr__( 'Syndicate this content' ) ."'><img style='border:0' width='14' height='14' src='$icon' alt='RSS' /></a> <a class='rsswidget' href='$link' rel='nofollow' title='$desc'>$title</a>";

Line 886 needs one occurrence

echo "<li><a class='rsswidget' href='$link' rel='nofollow' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";

A good visual tool for seeing if links are ‘follow’ or ‘nofollow’ is a Google Chrome extension called SEO Site Tools which also has a bunch of SEO goodies.

seo nofollow wordpress

 

Enable the extension and click on the ‘Show NoFollow’ option down in the bottom left corner – then any nofollow links will ne highlighted in red.

Cats: SEO, WordPress

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Copyright © 2023· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2023 · gee on Genesis Framework · WordPress · Log in