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
-
Opinion: Forget about SEO, develop a user-centric content strategyWe don't like talking about Search Engine Optimization, nor do we like focusing on it in any si…
-
Blogger Template: Sartorial 2 and Sartorial 3 (free!)In the spirit of sharing, we've decided to open up our Sartorial 2 and Sartorial 3 templates …
-
Tip: Making the comment link more intuitive for BloggerWe came across a comment on Google+ this morning that had us scratching our heads, mainly because …
-
Tip: Using Masonry to create a fluid layout for your BlogAre you a fan of Pinterest , and like the way that they have a fluid layout of boxes down the site,…
-
10 reasons recommending Blogger over Wordpress for most websitesWe get asked this question all the time: "Why do you use Blogger instead of Wordpress?" S…
-
Hangout on Air: Friday Request Line for 10/19/2012Less is more, user-centric design, focusing on your user experience, and lots of template manipulat…
-
Featured Blogger site: Renew PilatesRenew Pilates in Easthampton, MA provides private, semi-private and small group pilates instructio…
Post a Comment
Post a Comment