fbpx Adding text to the Drupal feed icon | ComputerMinds Skip to main content

Adding text to the Drupal feed icon

An article from ComputerMinds - Building with Drupal in the UK since 2005.
10th Dec 2007

Mike Dixon

Senior Mind

Drupal's handling of RSS's feeds is generall excellent, BUT sometimes it's nice to add a bit of explanation text to the standard orange feed icon.

Add this little snippet to your template.php file and you can add a bit of text to your Drupal feed icon.


function phptemplate_feed_icon($url) {
  if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), t('Syndicate content'))) {
    return ''. $image. ' RSS feed';
  }
}