Changing the auto generated default RSS feed to something else

liquid crystal - February 25, 2008 - 11:43
Project:PHPTemplate
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi
As you know if you access your drupal site with Safari or FF (and probably IE 7?) you get this RSS icon in the address bar which links to the default RSS feed for your site. Can I change where does it link to? The reason for me doing this, because I recently subscribed to feedburner and I want to use the feedburner RSS feed link instead of the one generated by drupal.

I'm using the default Garland theme on Drupal 6

thanks..

#1

Glick Interactive - April 20, 2009 - 11:49

The RSS icon in your address bar comes from following link present in the head tag of your drupal's homepage template.

change the value of href to link it to wherever you want..

hope that works for you

#2

tanzeel - June 2, 2009 - 15:20

In page.tpl.php file find print $head, and just before this statement paste this code

$head =  str_replace('rss.xml', 'rss/content', $head);
in place of rss/content you can replace any string. this will replace the link of browser rss icon.

 
 

Drupal is a registered trademark of Dries Buytaert.