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!

Discuss

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
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Breaking down why Apple TVs are privacy advocates’ go-to streaming device
  • Musi says evidence shows Apple conspired with music industry on App Store ban
  • Trump threatens Apple with 25% tariff to force iPhone manufacturing into US
  • I helped a lost dog’s AirTag ping its owner: An ode to replaceable batteries
  • Apple legend Jony Ive takes control of OpenAI’s design future

RSS mac surfer

  • Tot is new text editor for Mac, iPhone, and iPad focused on constraints and ease of use
  • TiPbITS: Google Drive Sorting Can Hide New Documents
  • How to take a screenshot on a MacBook Pro
  • How To Create Simple Animation With Mac Keynote
  • Last Week on My Mac: Virus pandemics

Donate

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

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