Studio Press

Just another Blogger Blog

ad

All About Labels (Keywords)

this is text in the body of the post

favorite icon

This is from the official blogger help group
http://groups.google.sl/group/blogger-help

How do I add a favicon to my blog?

Once you have created an icon using Favicon from Pics, save it to your computer. You will need to unzip the favicon to your desktop.

Blogger does not support .ico files, so you will need to upload it to a free file host.

To find a free file host enter the keywords “free file host” into your Google search bar, or you can upload your icon to Fileden.com.

Once you have done that, copy the url to your icon.

Next go to your Blogger admin panel and click on the template tab and then on Edit HTML.

Copy and paste the following code into your template.

<link href="http://Your_Favicon_Url" rel="shortcut icon" />
<link href="http://Your_Favicon_Url" rel="icon" />

Replace Your_Favicon_Url with the link to where you stored your icon. Place the above code between the <head>and</head> tags of your blog.


Save the template. Now refresh your page and you should see your icon in the corner of your page.

The Fix

Just tested it, and I got it working. Although I had to make a slight modification to the code. I don't know if it's going to be possible to write a procedure that will always work, as you have to understand the XML and JavaScript to know exactly what to change.

Here's what I did.

1. Found this section of the template

<p class='comment-footer'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/>
</a>
</p>

2. Replaced it with

<p class='comment-footer'>
<b:if cond='data:post.embedCommentForm'>
<b:include data='post' name='comment-form'/>
<b:else/>
<b:if cond='data:post.allowComments'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/>
</a>
</b:if>
</b:if>
</p>


This is almost the same as the fix I found on the web, but it had you look for this code

<p class='comment-footer'>
<b:if cond='data:post.allowComments'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/>
</a>
</b:if>
</p>

In the template I was working with the
<b:if cond='data:post.allowComments'>
statement was wrapped around the outside of a bigger block of code. I took the if and the close if out of the code when I pasted it in. I haven't seen enough templates to know how many variations of this may occur, so like I said, it's hard to have a universal fix.

testing the blogger template comment problem

on some third party templates the comments seem to quit working.

Why?
ad