SEO Search

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 2 June 2012

Numbered comments on threaded comments for Blogger/Blogspot

Posted on 15:26 by Unknown
In a past tutorial, I've been talking about how you can add numbered comments to your blogger blog and today we'll learn how we can add numbered comments along with comment bubbles on the threaded comments as well.

What the following CSS trick will do for you:
  1. When the general block of comments is initiating (.comments-content) a counter called countcomments activates and starts with an initial value of 1. 
  2. Then, each time the code flow goes through a review of any level, either a principal or a reply comment (.comment-thread li), content will bring us in front (:before) of the body of the comment, the number that is the counter at the time.
  3. Then is incremented in one unit the counter (counter-increment).
See the screenshot:
count comments, comment bubble, forum, blogger

Isn't that great? Well, i'm pretty sure many of you have been waiting for this cool trick. So let's begin applying it for our threaded comments system.

Steps to add bubble comments count

Step 1: Go to Dashboard - Template - Edit HTML (click on Proceed if needed)

    ...Expand Widget Templates:



    Step 2: Search (CTRL + F) for this piece of code:

    ]]></b:skin>

    Step 3: Add the following code just above it:

    .comment-thread ol {
    counter-reset: countcomments;
    }
    .comment-thread li:before {
    content: counter(countcomments,decimal);
    counter-increment: countcomments;
    float: right;
    z-index: 2;
    position:relative;
    font-size: 22px;
    color: #555555;
    padding-left:10px; 
    padding-top:3px; 
    background: url(
    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifMQyWnUy9Smifo4E7-qvXl_FxeC-4KQCAG_c3JHKp5BFuEyalr4aERVlRheGMwh79taihmEsPpjDBC8nkw0K4yd4UblAv6XobuDVeE5SmPPp_ThT_sFEn7RlVPZHmj-sauUI2lUAFfaCN/s1600/comment+bubble2.png) no-repeat;
    margin-top:7px; 
    margin-left:10px; 
    width: 50px; /*image-width size*/
    height: 48px; /*image-height size*/ 

    }
    .comment-thread ol ol {
    counter-reset: contrebasse;
    }
    .comment-thread li li:before {
    content: counter(countcomments,decimal) "." counter(contrebasse,lower-latin);
    counter-increment: contrebasse;
    float: right;
    font-size: 18px;
    color: #666666;
    }

    Note:
    • for no bubble icon, remove the code in red (including the blue code)
    • to change the comment bubble, replace the code in blue with the URL address of your own icon. If you're not sure what icon you should use, you can find some cool icons in my previous posts (see these tutorials here and here)
    • to change the position of comments count, increase/decrease the values (3 & 10) from padding-top and padding-left
    • to change the position of comments bubble/icon, change the values (10 & 7) from margin-left and margin-top
    Step 4: Now Save the Template and you're done!

    If you enjoy reading this blog, please share and subscribe. For any questions, leave a comment below.
    Email ThisBlogThis!Share to XShare to Facebook
    Posted in Blog Design, Comments, comments tricks, how to, threaded comments | No comments
    Newer Post Older Post Home

    0 comments:

    Post a Comment

    Subscribe to: Post Comments (Atom)

    Popular Posts

    • How to change Blogger "Post A Comment" Message
      In this tutorial i will show you how to replace the 'Post A Comment' text that appears above the comment form with an image. Also, I...
    • CSS Basics. How to Apply Rounded Corners On Images #1
      This tutorial will explain how to change the outside border of any image using some simple CSS rules to make it round, but this is so easy t...
    • Google Translate Widget with Flags For Blogger
      The Google Translate Widget for Blogger allows the visitors to translate your site or blog in their own language. This widget also auto-dete...
    • How To Remove Blogger Attribution Gadget
      The Attribution gadget is the gadget in the footer that says "Powered By Blogger". If you have tried to remove this then you may o...
    • Replace Older, Newer And Home Blogger links with an image or text
      Newer Post, Home and Older Post are links that appear on the bottom of the posts. When a visitor click on one of these links, they will take...
    • Expandable Recent Comments Widget for Blogger/Blogspot
      This Expandable Recent Comments is a very accessible widget that can be collapsed or expanded through user interaction, so that now, we don...
    • How to Add a Widget Below First Post in Blogger
      This tutorial will show you how to make a gadget/widget to appear just below the first Blogger post. First, you must understand that the usu...
    • CSS Basics. How to Apply Rounded Corners On Images #2
      In the previous post I have mentioned that we will learn to round images using CSS, without needing to edit them one by one using a program...
    • Before/After Photo Effect with jQuery
      If you have a design or makeup blog, or if you are using before and after image comparison , this script will surely be very useful for you....
    • How to Write SEO Optimized Blog Posts
      I'm not a SEO Expert, nor what we will read further is a top secret, but this is something about basic positioning that everyone should ...

    Categories

    • adsense
    • adsense optimization
    • adsense tips
    • Auto Video Template
    • avatars
    • blockquotes
    • Blog Design
    • blogger
    • blogger posts
    • color code generator
    • Comments
    • comments tricks
    • css
    • emoticons
    • Emoticons/Smileys
    • Facebook
    • feedburner
    • forum
    • Hacks
    • how to
    • how to make a blog
    • Image Effects
    • internet
    • jQuery
    • labels
    • menus
    • Navigation
    • navigation menu
    • popular posts
    • posts
    • read more
    • recent comments
    • recent posts
    • related posts
    • RSS
    • SEO
    • sitemaps
    • slideshows
    • social media
    • social media plugins
    • static pages
    • Templates
    • threaded comments
    • titles
    • tools
    • translating
    • webbligi
    • Widgets

    Blog Archive

    • ►  2013 (57)
      • ►  November (4)
      • ►  October (16)
      • ►  September (13)
      • ►  June (3)
      • ►  May (4)
      • ►  April (5)
      • ►  March (12)
    • ▼  2012 (73)
      • ►  July (1)
      • ▼  June (3)
        • How to Create Drop Caps (Big First Letters) in Blo...
        • Numbered comments on threaded comments for Blogger...
        • How to add “Email Subscription Form” to Blogger Bl...
      • ►  May (9)
      • ►  April (23)
      • ►  March (30)
      • ►  February (7)
    Powered by Blogger.

    About Me

    Unknown
    View my complete profile