Support » Plugins » Change RSS Feed Icon URL?

  • Hi,

    I was wondering how I could change the RSS Feed URL? I am talking about the RSS Icon that appears in the address bar in FF and Opera.

    By default it opens to the main feed on every page. I want to change this so by default it is the feed for the current category.

    So for example if viewing a post within cat 11 the RSS Icon URL should be changed to:

    /?feed=atom&cat=11

    And yes I only what ATOM to be available so how to I get rid of the other two? Besides just deleting the two files?

    Thanks,

    Will

Viewing 2 replies - 1 through 2 (of 2 total)
  • First off: No, you sure can’t change the icon that FF or opera use for RSS feeds in the address bar.

    Secondly: Dunno what files you’d delete… WP feeds are generated on the fly upon request.

    Have you had a glance at your theme’s header.php file? Odds are, you have 3 lines between the <head> tags that look like:
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

    Only want Atom to be auto-discovered by browsers? Well, delete the first two lines then.

    Hi,

    Thanks!

    Here is what I came up with, which works great:

    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?><?php $feed = '&cat='; echo $feed ?><?php $cat = get_the_category(); $cat = $cat[0]; echo $cat->cat_ID ; ?>" />

    Take Care,

    Will

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change RSS Feed Icon URL?’ is closed to new replies.