All Feeds by Feedburner

Your blog generates feeds, you have these links on your blog pages, but how many people have actually subscribed to your feeds?
Feedburner is used by many of you to monitor those statistics. But thanks to Ramani I recently discovered that there is something like auto-detection, that makes other feedreaders or browsers (like Firefox) automatically detect and subscribe to feeds. Those subscribers are not monitored in the Feedburner-count, so here is a tutorial on how to make all feeds available by Feedburner only. It made my statistics jump from 35 subscribers to 70 in little more than a week.

Open your template in HTML-mode. Close to the top you will find this line of code:

<b:include data='blog' name='all-head-content'/>

This line will not expand to the code behind it, even if you check the Expand Widget Template box. Now view your blog, right-click on it, and from the pop-up menu select "Source" (or the equivalent menu option from your browser). This will bring up a Notepad window, with the HTML-code of the displayed version of your blog. Look carefully at the top lines, and you will see that the widget-code is replaced with:

<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<meta content='true' name='MSSmartTagsPreventParsing'/>
<meta content='blogger' name='generator'/>
<link rel="alternate" type="application/atom+xml" title="YourBlogName - Atom" href="http://yourblog.blogspot.com/feeds/posts/default" />
<link rel="alternate" type="application/rss+xml" title="YourBlogName - RSS" href="http://yourblog.blogspot.com/feeds/posts/default?alt=rss" />

<link rel="service.post" type="application/atom+xml" title="YourBlogName - Atom" href="http://www.blogger.com/feeds/yourblogid/posts/default" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://beta.blogger.com/rsd.g?blogID=yourblogid" />


In this example, YourBlogName stands for the title of your blog, yourblog.blogspot.com is your blog's url, and yourblogid is a long number, the id of your blog. The two lines with link rel="alternate", indicated in red, let newsreaders auto-detect your blogs feeds. So we have to change these lines to point them in the direction of your Feedburner feed. We'll do this in 2 easy steps.

Step 1: Make a backup of your template.

Open your template in HTML-mode, and download the template as a backup.

Step 2: Replace the widget code.

Remove the line:

<b:include data='blog' name='all-head-content'/>

Replace it with:

<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<meta content='true' name='MSSmartTagsPreventParsing'/>
<meta content='blogger' name='generator'/>
<link href='http://feeds.feedburner.com/yourblogname' rel='alternate' title='RSS' type='application/atom+xml'/>
<link rel="service.post" type="application/atom+xml" title="YourBlogName - Atom" href="http://www.blogger.com/feeds/yourblogid/posts/default" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://beta.blogger.com/rsd.g?blogID=yourblogid" />


Replace the http://feeds.feedburner.com/yourblogname with the url to your Feedburner feed.

Now save your template.

Now that we have fixed the auto-detection part, there is still the issue of the feed-link on your posts page. This feed-link has to be made invisible, so that your visitor has no other option than following the link to your Feedburner feed.
The standard feedlink provided by Blogger is of class .feed-link.

Open your template in HTML-mode, and inside the skin look for the following line:

.feed-link {

Below this line add:

display: none;

If there is no class .feed-link defined in your template, define it with:

.feed-link { display:none; }


Now save your template.

Congratulations! Your visitors have no escape from Feedburner!

This is what people say:

LOUI$$ said...

Thanks Hans,nice hack!I not really understand something here, when do the reader number increase?wait until next reader reader join?

Hans said...

@Louis: I am not sure how often reader data is updated. In my experience it might take a day before the counter is updated.

James said...

When you say inside the skin, where is that exactly? I think I know, but I don't want to mess it up.

James said...

ps. can you look at my source and see that I did this correctl?

Hans said...

@James: you should remove the <b:include ....>-line from the template, and replace it with the lines of code I gave. And replace the standard-feed-link ONLY in the <link rel="alternate" ....>-line, not in the other lines.

gentletouchee said...

thanks. ive been looking for this in the feedburner forums, no luck.it only has the non-beta tutorial.

you should inform or post this or a link /thread in there, you're traffic will definitely jump! to even more popularity.

my sites are beautiful because of beautiful beta! god bless you...

Hans said...

@gentletouchee: thanks for the compliments!

priya said...

After
.feedlinks{
clear: both;
line-height: 2.5em;
margin-left: 13px;
}

Should I deleted the ones within brackets and add display none or add the message after margin left.

Hans said...

@priya: just adding the line display:none is enough. It will hide the links.

Nostalgia Manila said...

hello hans! great tutorials you've got here. my blog address is: http://nostalgiamanila.blogspot.com/

tried this "all feeds by feedburner" tutorial, and seems to have worked, BUT, if you look at the top most part of my blog page, right on top of the header on the gray background, you can see: ".feed-link { display:none; }" !!!!!! how do i not show that? i made sure to follow all your steps. would you be so kind to check out my source code to see what is wrong? HELP!!!!

thanks a million!

Nostalgia Manila said...

you may reach me at: nostalgiamanilamail@yahoo.com

thanks again!

Nostalgia Manila said...

Hello Hans,

I tried this hack and it seems to work as the links to the "Atom" feed has been hidden, although I still see the "Subscribe to:" text at the bottom of my posts. Check out: http://nostalgiamanila.blogspot.com, go to the bottom of the page, and right after the "comments", and "links to the post", under the "newer post", "home" "older post" links, you'll see the "Subscribe to:" text I'm talking about. How do you take that out?

Also tried applying your cool social networking script, and it's real amazing, however, they don't fit the light blue box on my template. Is there a way to push them up, or lengthen the height of that box where they are?

Would really appreciate your help on these problems. Your hacks are amazing, and you have the BEST hacks for Blogger than any page, as you make it so easy for beginners like me to understand.

Looking forward to a response: nostalgiamanilamail@yahoo.com

Thank you!

Kathy said...

Hi, Hans. I implemented your "All Feeds by Feedburner" hack, but there is something I don't understand. If the Feedburner link is invisible, how can visitors subscribe to it?

I'm sure there's something I'm not understanding about feeds and how they work, because I am really hazy on this whole thing.

I looked at my blog, and I see nothing on it that a reader can click on to subscribe to my feed. And frankly, I don't even know what that means, to subscribe to my feed.

If you could take a look at my blog to see what I'm missing, I'd be grateful. The url is http://libertystreetusa.blogspot.com/.

You see that I'm in kindergarten on this stuff. Be gentle with me, please.

Hans said...

@Kathy: a Feed is nothing more than a summary of your posts, formatted in a special way. The 2 formats used most are Atom and RSS. Feeds are read with feedreaders. There are many available, some integrated with your webbrowser (Firefox), some an application for your PC (e.g. FeedReader), some webbased (e.g. Bloglines). The advantage of using a feedreader is that you can view the contents of websites that you are interested in in one window (your feedreader), in stead of having to visit each of these websites to see if there is anything new.
Blogger standard provides feeds for posts, for comments, and for labels. So, if you are using a standard Blogger template, you will see a link at the bottom of the page that says "Subscribe to feed (atom)" or something alike.
Now, if you are a more advanced Blogger, it is interesting to see how many people have subscribed to your feeds. You can't do that with Blogger, and that is where FeedBurner comes in. Go to www.feedburner.com and create an account. It will give you 2 parts of code that you can add to your sidebar. The first is a link to FeedBurner. The second is html-code that displays the counter. What actually happens here, that clicking the link will subscribe the visitor to your feed that is redirected to FeedBurner. That makes it possible to count how many people are subscribing. If you want all people to go to FeedBurner, you have to remove the links to the standard feeds. And in the header of your template you have to change the auto-detect-settings, as explained in this post. I hope this is clear, and that it helps you.

Kathy said...

Yes, it does help, Hans; thank you. Actually, I had already signed up for a Feedburner account, and I had used your hack for making all feeds go through feedburner. What I could not figure out was how to get an icon or a link on my blog that would say "Subscribe to my feed," or similar words. I saw that kind of link everywhere, on every blog I visited -- but where on earth did people get the code for it?

Well, yesterday I went to Feedburner and searched for it, and finally found it. So it's on my blog now. I must say, though, that site (Feedburner) is *remarkably* unintuitive. I can't believe how hard it is to find what you're looking for there. And they assume a level of knowledge that I don't have.

Okay, I'm through whining now. :)

Keith Schooley said...

Hi, Hans,

Merry Christmas! Just a couple of questions: 1) does your feedburner hack remove the functionality of the reader being able to subscribe just to the comments of a particular post (i.e., by removing the link that would enable them to do that); 2) how do you get your own comments in a different color than everyone else's?

Hans said...

@Keith: no, the hack does not block you from subscribing to posts comments, as long as Feedburner has burned that feed. So for all feeds you want to offer to your readers, create a feedburner link.
And author highlighting in comments is explained in this hack from Hackosphere.

cikal61 said...

i try to use it in my blog......


thanks a lot :)


http://cikal61.blogspot.com

Shrish said...

Hans, Thanks for nice tutorial. I have added 'display: none;' in the ".feed-links" class. It works fine.

But I only want to hide 'Subscribe to: Posts (Atom)' at the end of front page and want to keep 'Subscribe to: Post Comments (Atom)' link at the end of posts, because these are unique to posts. How can I do this ?

Also is there a way to edit the 'Subscribe to: Post Comments (Atom)' text ?

Hans said...

@Shrish: take a look at my latest post to see how you can hack the feed links.

Archit said...

Hello Hans,

1. I saw this hack on Feedburner's Forum at http://forums.feedburner.com/viewtopic.php?t=3377 and they mentioned to just replace the two feed links with one line:

<link rel="alternate" type="application/atom+xml" title="test cheese -
syndication feed" href="http://feeds.feedburner.com/YOURFEEDNAME" />

But you mentioned to replace those lines with two feed links.

I exactly don't understand what is the extra line for and does it have any benefit?

2. I also wanted to change the link which is at the bottom of the blog("Subscribe to: Posts (Atom)") to target to my FeedBurner Feed. How do i do this?

Bibin said...

Is this necessary now as blogger gives an option to redirect your all feeds to feedburner feed.... settings->site feed.... Is there any difference between this

oom said...

"EditURI" ??? what I input must here. I don't understand. thanks

Planet Apex said...

I've been thinking of this for sometime but didn't get to implement it. Just did it and its working.. great tip, thank you

the wicked said...

thank you, your post is very helpful, coz i like tweaking my blog.

Sam Sall said...

hi thank you for sharing this with us
i just did those instructions at first the template couldn't be saved then i realized that widget should not be expand then i unchecked expand widget and did your instruction all over again and then i saved the template ....now just waiting for the result
thanks again

pocket said...

Thanks Hans...
I love the BB's new loook!

snifan said...

what is edit URI is my blog