July 16, 2005
Personalize the 'comments' text
All blogger blogs by default have comments hard coded into the HTML. It doesn't matter how many you have it will appear to be X comments. You can use the code below to change this depending on how many you have.
Example:
to
to
In your Template, Find:
Replace with:
You can make the comments say whatever you want it to say for any number of comments. The text above is just a suggestion.
Example:
to
to
In your Template, Find:
<$BlogItemCommentCount$> comments
Replace with:
<script type="text/javascript">
<!--
var num = <$BlogItemCommentCount$>;
if(num == 0) { document.write('No comments'); }
else if(num == 1) { document.write('1 comment'); }
else { document.write(num + ' comments'); }
-->
</script>
<!--
var num = <$BlogItemCommentCount$>;
if(num == 0) { document.write('No comments'); }
else if(num == 1) { document.write('1 comment'); }
else { document.write(num + ' comments'); }
-->
</script>
You can make the comments say whatever you want it to say for any number of comments. The text above is just a suggestion.
3 Comments:
Also, is there a way to know how many hits your blog gets? Like a counter or something?
Sure you can use this on your tip of the day page.
This blog doesn't get very many visits a day. :(