Display a link to your RSS feed in address bar

I was scanning the WordPress Support Forum the other day and someone asked how one could display an RSS feed icon in the address bar just like in the image below:

rss feed icon in address bar

I must confess I’d never noticed this before and of course now I can see it on most websites.

To add this feature to your site, simply replace the RSS feed code in the header.php from:

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />

to:

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

That simple change is all it takes!

One Response to “Display a link to your RSS feed in address bar”

  1. christine says:

    I should clarify that this seems to work only in Firefox. I’m not seeing the icon in IE7 and don’t have IE8 installed yet.