We came across a comment on Google+ this morning that had us scratching our heads, mainly because we never noticed this odd behavior in Blogger, but once noticed, it really is strangely wrong.
Basically it boils down to all "index" pages in a Blogger site, that when a page has multiple posts on it, in the footer of each post it says something like "5 comments" or "no comments", but never a link that says "leave a comment". Sure, the "5 comments" or "no comments" are links to the comment form, but in terms of usability, the poster is completely correct in saying that's very weird behavior.
So we took it upon ourselves to write a fix!
The original code
You can find the following code by going to the Edit HTML function under your Template page, then checking the box to "Expand Widget Templates". Please remember to backup your template first!
<span class='post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:post.commentLabelFull/>:
</a>
</b:if>
</b:if>
</b:if>
</span>
Our modified code
Instead of this part:
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:post.commentLabelFull/>:
</a>
You could do:
<data:post.commentLabelFull/>, <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
Post a Comment
</a>
This would display as: 5 Comments, Post a Comment
("Post a Comment" would be the link)
Popular
-
Converting your Blogger blog posts into a BookWe're always up for a new challenge. This one was posed to us by +Ben Morrell who wanted to t…
-
Validating for Rich Pins for PinterestPinterest recently announced new functionality for "Rich Pins" for Pinterest for differen…
-
Bringing G+ Comments to your Blogger blog without walling it offWe think it is awesome that +Blogger and +Google+ have started integrating more and more every …
-
Loops, loop positions, and isFirst variables in BloggerLooping through the listing of blog posts <b:loop values='data:posts' var='post'…
-
Using Blogger page types to affect your blog designIn many of our tips we recommend wrapping the Javascript code that we're providing in something…
-
Transforming a Blogger RSS feed into a slideshowThis tip was created by us to solve a challenge that one of our readers left for us on our Resizing…
-
Setting up Pinterest Rich Pins for Big Cartel sitesPinterest recently announced new functionality for "Rich Pins" for Pinterest for differen…
Post a Comment
Post a Comment