By mrmyth on
I have an RSS feed link (the little orange square) and I want to remove it.
Here's my page http://www.minutebyminute.org
How do I remove it?
I have an RSS feed link (the little orange square) and I want to remove it.
Here's my page http://www.minutebyminute.org
How do I remove it?
Comments
Everybody uses a simple hack for this
go into your server directory and go into your drupal folder. Then go into the "misc" folder and delete the feed.png file. This is currently the only way to disable a feed that I know of.
thanks
That was easy.
Perhaps a better way
Actually, this method will probably end up generating 'File Not Found" errors in your site log file. I would recommend editing your page.tpl.php file and removing the line that reads:
<?php print $feed_icons; ?>Neither of these methods will disable the RSS feed from your site. They just remove the icon from your pages.
Drupal seems to deal with the removed image fine
as it won't even produce any reference to the link in the source of the page it presents. So Drupal isn't sweating it, and it is a bit quicker.
Of course, the reason Drupal might not care is that it still presents the rss feed in the domain bar (at least it does on firefox, probably the others too).
How so?
and it is a bit quicker.
Please, do elaborate.
Sure, it is much easier to go to a folder
and delete or move this file than it is to open the template, find the feed display php, delete it, and then save the file. The other thing is that you'll have to do that modification by hand again if you upgrade your theme to a new version of any theme.
Ultimately, we should have the ability to turn the feed off from the administration menu though, and I'm sure we could both agree on that.
But, I'm definitely not telling you to stop using something that works for you and could work for others, I just wanted to present my case as well.
thanks
This is very interesting. Perhaps I'll do both.
htaccess
in htaccess couldn't you redirect the rss path to a "no feeds" page, or the homepage, or whatever, too
nice
i thought this method was pretty nice and easy. not knocking the other method(s) though. Only prob would be having to do this for every theme.
see also https://www.drupal
see also https://www.drupal.org/node/944476