Last updated January 3, 2014. Created on January 3, 2014.
Edited by rootwork. Log in to edit this page.

By default, Drupal displays the RSS icon that is located in Drupal core: /misc/feed.png. Placement of this commonly used and widely recognizable icon is governed by the page.tpl.php template in use in the active theme. The icon is also used in the subscriptions block. If you want to replace that feed icon with one of your own, follow these steps:

  1. Create your new RSS icon and save it in .png format in your theme's /images folder as "feed.png".
  2. Create a file in that theme's directory called template.php or, if it already exists, edit the existing file.
  3. Insert the following code between the <?php ?> tags:
    function yourthemename_feed_icon($variables) {
      $text = t('Subscribe to @feed-title', array('@feed-title' => $variables['title']));
      if ($image = theme('image', array('path' => drupal_get_path('theme', 'yourthemename') . '/images/feed.png', 'width' => 16, 'height' => 16, 'alt' => $text))) {
        return l($image, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('xml-icon'), 'title' => $text)));

    Be sure to replace 'yourthemename' in the function name and within the code with the actual name of your theme, and set the width and height to match the image size.
  4. Clear the theme registry.

You should now see your new custom RSS icon in place of the icon provided by Drupal core.

Looking for support? Visit the forums, or join #drupal-support in IRC.