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, so I’ve updated the basic and 3 column templates to include this feature. And you can too simply by replacing 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!

1 Comment so far

  1. christine July 16th, 2009 11:46 am

    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.

Leave a reply