Featured post

Office 2013 Activator (KMSpico 9.1.3)

KMSpico 9.1.3 is really an amazing tool for activating Office 2013. And as a bonus, you can also activate Windows 8 or 8.1 with thi...

Add Total Posts & Comments Widget in Blogger



How to show total number of posts and comments widget in blogger blog


Hello Guys! Hope you all are fine. Today I have come with another post for bloggers! You know there are many tips and tricks published for bloggers. You will find them in the blogging category. And several times I have also discussed about adding attractive widgets in blogs. Today I'm gonna share another one with you- Total Posts & Comments Widget.


Adding this code is very easy. All you need is just to add an HTML/ JavaScript Gadget in your site. And before that you must decide where you will place this gadget. It maybe at the bottom, or maybe at the right pane (if any) of your site. Or if your site has any page views/  hit counter then you can place it just before that counter. 

Okay let's start: 
  1. Don't forget to sign in your blogger account. Then go to the blogger control panel I mean design or dashboard. 
  2. Go to the Layout option from the left side. 
  3. There you will find several Add a Gadget options. Select one that is suitable for you. 
  4. Find and select HTML/ JavaScript Gadget. (Usually found at the 11th position)
  5. Now copy and paste the code below in the Content box.
  6. Hit the Save button and rearrange the widget by dragging through by mouse if necessary. 
  7. That's it! View your site to check. 
<script>function mbhTotalCount(json) {document.write(parseInt(json.feed.openSearch$totalResults.$t,10));}</script><div style="font: 15px Georgia;">
Total Posts: <script src="http://www.markspcsolution.com/feeds/posts/default?alt=json-in-script&amp;callback=mbhTotalCount"></script></div>
<div style="font: 15px Georgia;">
Total Comments: <script src="http://www.markspcsolution.com/feeds/comments/default?alt=json-in-script&amp;callback=mbhTotalCount"></script></div>

Just replace my URL (red part) with yours. 

And also look at the Demo below. This is exactly what you will get in your site after adding the above code in your template. 

Total Posts:
Total Comments:


Stay with Marks PC Solution to get more interesting IT topics!



13 comments:

  1. ys i am following your tips for doing blogs.........
    it consulting

    ReplyDelete
    Replies
    1. It's our pleasure buddy! :)

      Keep in touch . . . .

      Delete
  2. Good article! We will be linking to this particularly great article on our site. Keep up the great writing.

    شركات نقل العفش بجدة
    http://prokr.com/furniture-transfer-company/
    نقل عفش بمكة
    http://albyaan.com/movers-mecca/
    شركات نقل عفش
    http://prokr.org/
    نقل العفش بجدة والمنطقة الغربية
    http://shoala.net/movers/jeddah-western-region-companies/

    ReplyDelete
  3. Great article! We are linking to this great article on our site. Keep up the good writing.

    6 شركة مكافحة حشرات بالدمام
    http://prokr.com/pesticides-spray-anti-insect-company-dammam/
    شركات رش مبيدات
    http://prokr.org
    شركات مكافحة حشرات ورش مبيدات بالمنطقة الغربية
    http://albyaan.com/companies/anti-insect-spray-pesticides-jeddah-western-region/
    مكافحة حشرات بالمدينة وينبع
    http://elbassma.net/anti-insect-companies/al-madina-yanbu/

    ReplyDelete
  4. Great article! We are linking to this great article on our site. Keep up the good writing.

    1 عقارات جدة
    http://3kary.com/
    فلل للبيع بجدة
    http://3kary.com/property-status/villas-for-sale/
    اراضي للبيع بجدة
    http://3kary.com/property-status/land-for-sale/

    ReplyDelete
  5. Everything is very open with a precise explanation of the issues. It was definitely informative.
    عقارات جدة
    3kary.com
    شقق للإيجار بجدة
    http://3kary.com/property-status/apartments-for-rent/
    شقق للبيع بجدة
    http://3kary.com/property-status/apartments-for-sale/

    ReplyDelete
  6. nice
    شركات نقل العفش بالمدينة وينبع
    Prokr.com
    نقل العفش بجدة
    Albyaan.com
    شركة نقل عفش
    Prokr.org
    نقل عفش بالرياض
    Shoala.net

    ReplyDelete
  7. we are ready to send you men who are able to help you in pest control you need in your home
    http://www.mazayapestcontrol.com/

    ReplyDelete
  8. نعمل على تركيب جميع انواع مصاعد منزلية بمهارة ودقة وباستخدام احدث انواع المعدات بالتركيب
    http://elevatorss.com

    ReplyDelete
  9. فرق العمل فى افضل شركة تنظيف بالمدينة المنورة تقوم بخدمات التنظيف بهدوء تام لكى لا نجعلك تشعر بالانزعاج من وجود عمالة بمنزلك
    http://www.forsan-elkhaleg.com/17/Cleaning-company-in-Madinah

    ReplyDelete
  10. مركز النور يساعد جمبع الطلبة فى تحسين مؤهلم الدراسي من خلال معادلة الهندسة نحن نحقق حلم الجميع فى الالتحاق بكلية الهندسة
    http://www.xn-----btdchbc6bf4b5c8gkdde3ar6c.com


    ReplyDelete
  11. الانترنت يعتبر من اسرع الوسائل فى تحقيق النجاح لشركتك تعرف معنا على خدمات مسك كلمات التى نقدمها لكم فى شركة سوقني باقل الاسعار
    http://www.swaqny.com


    ReplyDelete
  12. فى شركة كشف تسربات ستحصل على افضل الخدمات فى كشف تسربات المياه نحن نستخدم افضل انواع المعدات فى الكشف
    https://amtar-ksa.com/%D9%83%D8%B4%D9%81-%D8%AA%D8%B3%D8%B1%D8%A8%D8%A7%D8%AA-%D8%A7%D9%84%D9%85%D9%8A%D8%A7%D9%87/

    ReplyDelete