Getting rid of the aggregator button in Drupal 5 - one more try
paul6299 - February 2, 2007 - 03:54
Nobody responded, so sorry if I seem to be a nag. Does anyone have any idea how to make the aggregator button in Drupal 5.0 on page / go away? The aggregator is not enabled in the site in question. There is no real need for it, and I can't find any way to make that link button go away.

Feeds or aggregator?
What are you referring to here? The aggregator.module in Drupal should not do anything if it's not enabled. If you're referring to the RSS feed icons provided by Drupal, those are built-in to the node.module and are for your visitors to use. However, you can remove them in your theme by not printing the $feed_icons variable.
--
If you have a problem, please search before posting a question.
Thank you
But I did know what it was for. I just wanted to get rid of it. As was mentioned below, the css was no help since that's not where it's printed from, but modifying the theme.inc worked.
Paul W in L.A. (somewhere south of Hollywood)
It's meant for other sites?
If it's the same button I'm thinking it is, it's meant for other people to pull the contents of your front page into their feed. Click on it and see what comes up- should be some RSS XML of your site. Not sure off the top of my head how to remove that. Theme? Admin settings?
Otherwise, if you're looking to remove the 'aggregator' item from the admin/navigation menu, then disable it from the menu settings.
Good luck,
Jason
can also hide it in the .css
can also hide it in the .css file feed-icon.png
Yes! Use the CSS to hide it!
Yes! Use the CSS to hide it! Because it won't affect your core. Just the UI involved :)
Check this out http://www.echoecho.com/csslayers.htm
Besides that, you can use the Firebug extension in Firefox to help you out and a CSS editor. I prefer the Macromedia Dreamweaver :)
www.indiecom.net - Hello from Malaysia
Thanks to all
The css was not, after all the solution. It was in the theme.inc. I just commented out the function theme_feed_icon. BTW, I also think Dreamweaver is a great editor. As a WYSIWYG editor, however, I think the code it creates is grossly inefficient.
Paul W in L.A. (somewhere south of Hollywood)
actually .....
it very much is being called in the style.css file. You probably searched for feed-icon.png when you should have searched for feed-icon. See below taken from the garland theme.
#block-node-0 img, .feed-icon {float: right;
padding-top: 4px;
}
could have just added
.feed-icon {display: none;
}
to the bottom of garlands style.css file. which is what was meant by, "use css to hide it".
For working with css I highly suggest using the firefox browser and the web developer addon and/or the firebug addon to see whats going on with .css
Not so
I'm using a slightly modified bluemarine theme. There is no mention of feed-icon in it. Could I add it with "display: none;" as you said above?
Paul W in L.A. (somewhere south of Hollywood)
yes. add it to the bottom of
yes. add it to the bottom of bluemarines (or your custom bluemarine style.css file)
for blue marine its being called in your aggregator.css file. your style.css file overrides all default css settings.
That worked, thanks
Paul W in L.A. (somewhere south of Hollywood)
template.php
If you really want to tweak the theme.inc, I hope you do this in template.php of your theme rather than changing the code of a core file. It will be easier for you to upgrade in the future because all your customization will just be on one file.
But to comment out the function in template.php will not be of any help, though. Probably just tweak it.
Another solution
Administer - Site Building - Blocks. Choose your theme. Find the block named 'Syndicate'. Set Region to <none>.
Thats not where his
Thats not where his feed-icon was coming from. he isnt using the aggregator module. shutting off the block wouldn't help him get rid of the feed-icon that appears on published content.
Not sure...
Perhaps I misunderstand what you say, but I was referring to the Syndicate block, not the Aggregator module,
If I leave the Syndicate block 'on' (say, on content region), the feed-icon shows up on any page, if I switch it off is disappears. I thought that Paul could be happy with this.
The feed icon shows at the
The feed icon shows at the bottom of pages when syndicate block is unenabled. This issue was not about a block issue. It was how to get hide the feed icon on pages like front page (at the bottom) where users can click to add the feed to their Reader.
Paul was not using the syndicate block (which also has a feed icon). His issue was with the default feed icon that isnt part of the syndicate block.
For an example of the feed-icon were talkaing about see http://demo.verymisunderstood.com/drupal5
you'll see a feed icon at the bottom of the content of the front page. The syndicate block is not enabled on my sandbox site.
You are right
Yes, I see you are right, although the whole behavior seems a bit curious. Apparently, the feed icon only appears on list pages that are filtered by Drupal's core APIs (say: taxonomy/term/x). If you use Views, or promote an individual page to the front, the feed icon falls under the control of the Syndicate block. Thanks!
template.php
haven't needed it for 5.x yet, but for 4.7 this does the trick in- put it in template.php:
<?phpfunction phptemplate_feed_icon($url) {
return '';
}
?>