Thursday, July 10, 2008

How Can I Change Atom to RSS in Blogger

At the bottom of your blogger page you'll see a line that says something like

Subscribe to: Posts (Atom)

or
Subscribe to: Post Comments (Atom)

depending on the specific type of page you're viewing (index, permalink, search, label, etc.)

If you'd like to change this to RSS then first go to Template -> Edit HTML, check the checkbox for 'Expand Widget Templates' and find the following section
<b:includable id='feedLinksBody' var='links'>
<div class='feed-links'>
<data:feedLinksMsg/>
<b:loop values='data:links' var='f'>
<a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a>
</b:loop>
</div>
</b:includable>



From how it's setup it looks like there should be an option to choose which type of feed you want to use, but unfortunately they either haven't added that option yet or have no plans to do so. So we have to make some manual edits instead.





Just replace the code above with the following




<b:includable id='feedLinksBody' var='links'>
<div class='feed-links'>
<data:feedLinksMsg/>
<b:loop values='data:links' var='f'>
<a class='feed-link' expr:href='data:f.url + "?alt=rss"' type='application/rss+xml' target='_blank'><data:f.name/> (RSS)</a>
</b:loop>
</div>
</b:includable>


0 comments:

Recent Posts

Template by - Abdul Munir | Daya Earth Blogger Template