Search This Blog

Loading...

Sunday, October 31, 2010

HOW TO CHANGE OR REMOVE THE "SUBSCRIBE TO ATOM" LINKS IN BLOGGER

Blogger blogs publish a site feed in Atom format.  Atom feeds work in a very similar way to RSS, and there is very little difference for either publishers or those who choose to subscribe. 

 

Default Blogger templates (and indeed, many third party templates), each page will feature a link to subscribe to the Atom feed. On the main pages, this will link to the main site feed, whereas on post pages, this will link to the comments feed for a particular post, like this:

 

Subscribe to : Post Comments (Atom)

Newer Post                Home                          Older Post

 

Most blog readers are familiar with feeds in RSS format, though not with Atom feeds. Therefore this link can be confusing, and may well discourage readers from subscribing!

 

How the “Subscribe to (Atom)” links are formed

 

The “feed links” which appear in your Blogger template are constructed in three parts:

 

The <b:includable if=’feedlinks’ > section, which includes the dynamic code used  to generate links to the appropriate feed.

 

The <b:includable id=’feedlinksbody’ var=’links’> section, which generates the text and link code for the appropriate feed link.

 

The <b:include id=’feedlinks’/> line, which tells Blogger the position in the template where these dynamic links should be displayed

 

How to change the feed links message

There are many ways you could alter the message used for links to your feeds. Here are the simple steps you may prefer to change:

 

Remove “(Atom)” from the link text

We can easily remove the “Atom” part of the feed link, so the message will read “Subscribe to: Posts” on the main page and “Subscribe to: Post Comments” on post pages.

 

Follow the few easy steps

1-    Login to blogger with your ID

2-    After entering the Dashboard page, click Layout.

3-    Then click Edit HTML tab.

4-    Click the Download full template link. Save your template:

5-    Please mark the little box beside Expand Widget Templates  Wait for a moment

 

Click checked-  Expand Widget Templates

 

6-  Go to your template code,  and find the following code like this :

 

 

Using the search function of your web browser, locate this code (<data:f.feedType/>)

 

And Delete this code!

 

 Then preview your template. You should now see on the home page that the (Atom) text is removed from the feed link, and can proceed to save your template.

 

Alter or remove the “Subscribe to” text

The “Subscribe to “text” is generated by this line of code

 

<data:feedLinksMsg/>

 

You can replace this line with a message of your own choosing, or simply delete it if you prefer this text not to be displayed at all.

 

 

How to remove the feed links altogether

If you display a link to your blog feeds elsewhere in your template, you may prefer to remove the feed links in yur posts entirely.

This is very easy to delete! Find this line of code in your Blogger template (make sure you have checked the “Expand widget templates” box:

 

<b:include name=’feedLinks’/>

And delete it!

 

You can preview your blog template before saving it: the “Subscribe to: Posts (Atom)” link should now be removed from your layout, on post pages as well as the main page.

 

 

When your problem is fixed,  Please don't forget to leave a comment.,  Happy blogging !!

 

 

 

 

 

 

Friday, October 29, 2010

Create Recent Comments with JavaScript code

If you want to show more than 5 Recent Comments  in your sidebar widget,  Then follow  this  Trick.

1.   Login to blogger with your ID
2.  After entering the Dashboard page, click Layout
3.  Then click  Page Element
4.  Then click Add a Gadget
5.  Select -  HTML/Javascript

     Copy and Paste this following code :



<script style="text/javascript" src="http://sites.google.com/site/angga123site/comments.txt"></script>
<script style="text/javascript">var numcomments = 10;var showcommentdate
 = true;var showposttitle = true;var numchars = 100;var standardstyling = true;
</script><script src="http://YourBlogURL.com/feeds/comments/default?
alt=json-in-script&callback=showrecentcomments"></script>


Change YourBlogURL.com  with  your url
(for example: kaushiksons-blogteacher.blogspot.com).
You can also change the number of recent comments to show,  just change the number "10"  with any number you like.

Click Save and see the result. - Now you have a  recent comments widget for blogger.



When your problem is fixed,  Please don't forget to leave a comment.,  Happy blogging !!