In this blog I use a combined method that uses CSS3 whenever supported, so this image comment bubble hack is not installed in this blog, instead a combination of this hack and the CSS3 comment bubble hack, more about that in this post.
Add comment count code
First we will add the link to "post.url#comments" next to the post title. Open your template html, and expand widget templates. Find lines:
<b:includable id='post' var='post'> <div class='post hentry'> <a expr:name='data:post.id'/> <b:if cond='data:post.title'> <h3 class='post-title entry-title'>After those lines add (doubleclick to select for copying):
<b:if cond='data:post.allowComments'><a class='comment-bubble' expr:href='data:post.url + "#comments"' expr:title='"Comments to &quot;" + data:post.title + "&quot;"'><data:post.numComments/></a></b:if>Save the template.
Add CSS for comment bubbles
If you want to have own bubble image, first you need to upload the comment bubble image to some server, to your Picasa web album, for example, and get its url address. I use this image uploaded to my Picasa web album, its url is https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiustzmZZ_DVTnRogE2sCovlleU6eLrJRn1oHbGe6cMmLm4kcqMNhD8BC2ha4QqDKZYbn5I9oxxOTgu6UzxYkRHdJDZ2yZAKaA5BRThJDFlz7nmFTW7ChfqrhG8oO4ZXscQLUwWDwUEoIo/s800/comment_bubble.jpg.
Then go to Template designer, choose Advanced, Add CSS. Add the following simple CSS definition:
Change image url, if you want, and image width and height. Paddings can be changed to change text position inside the comment bubble image. Apply to blog – comment bubbles are installed.
Click on a single comment to hide/show its text
9 comments:
Thank you for sharing .
www.urldata.blogspot.com
I loved this hack a lot! I've just implemented it in my blog.
It's awesome!!! :)
@Aparecido Rosario
Great you liked this, it is easy to install and customize by changing the image. Thanks.
Well done!
I noticed a change in blogger's comment URL, it's now #comment-form vs the previous "#comments"
;)
@robbie Hi, and thanks for the observation.
It may depend on the template, seems that the templates I'm using have both anchors on the post pages. #comments is positioned at the beginning of comments block, and #comment-form is positioned at the end of the comments block, where the comment form or the link to posts comments is.
But this may have changed in couple of months (I made by YABTB demo blog in January 2012 and there's still #comments). One could either add the #comments anchor to top of the comments by editing template, or change the link to point to comment form.
@MS-potilas
Yes, I should have added the caveat that it's template specific, and I can see pros and cons of each, really.
Inspiring, work here!
I am having a hard time implementing this on my blog. For some reason it just shows up as a number on the left of my post title with no bubble or anything... Here is my blog http://themorningletters.com Any advice?
@Jessica Hi, I think you've succeeded with the first part (add comment count code), but there's some problem with adding the CSS codes. In the new interface, click Template, then Customize. Template designer opens. Select Advanced, Add CSS, and add the CSS definition, just change background URL to the image you want to use (or you can use the same I have). Hope you get it working. :)
Thank you so much. I was really encountered with this problem several time, AWWW i received the good solution now
seo company
See the hack to make the 'Post a Comment' link bigger.
Post a Comment