Check/fix your RSS feed title

Drupal assumes you have a site slogan, and will give your RSS feed a title of "SITENAME -" if you don't. Here is how to fix that:
  • Open modules/node/node.module
  • Find the function node_feed
  • Find this block of code:
    $channel_defaults = array(
        'version'     => '2.0',
        'title'       => variable_get('site_name', 'Drupal') .' - '. 
                                  variable_get('site_slogan', ''),
        'link'        => $base_url,
        'description' => variable_get('site_mission', ''),
        'language'    => $locale
    );
  • The title line really should check whether you have a slogan or not. If you don't have a slogan, change this to:
        'title'       => variable_get('site_name', 'Drupal'),
Written in WikklyText.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks for this post ...

Thanks for this post ... that "-" has been driving me crazy!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.