Sunday, May 31, 2015

Now Add Google+ Badge With Just A Shortcode In Blogger

Google+ Badge With Shortcode

Today i am sharing you a beautiful widget which can be placed on your blog with just a shortcode!!.You Must Have been knowing about wordpress shortcodes but now i am revealing you the Google+ Badge with Shortcode.

What is Shortcode-
 Shortcode is a simple way to add any thing in  a website.from Shortcode you can add many times a widget very easily unless just copy and pasting the code many times!
This Shortcode Has Been Made By Shivansh (Blogger Guiders) and i am just sharing it to you.

According to the Inventor Shivansh-

"You can add Google+ Badge on comments, sidebar, footer and between posts too! and the most best thing is: by just one line code! No more that ugly long codes.
We have created Google+ badge shortcode because today, this widget is mostly used in blog-o-sphere. In every blog, at least one Google+ badge is installed. So, we have created this Shortcode."

How To Add This Shortcode-

1- Go to Blogger >> Template >> Edit HTML
2- Press Ctrl+f to Find <body> And paste The Code Below This tag-


<script src='https://googledrive.com/host/0B8acxOz46qBZUDRBZ0laRlU2NGc' type='text/javascript'/>

Note- The Above script is magical meaning the main script through which the shortcode will run.

3- Save The Template.
4- Now Anywhere You Can Add google+ Badge With The Shortcode Given Below-

 [gbadge user='Your G+ Id' width='300' height='auto' theme='light' type='person' relation='author' tagline='true'/]


AttributeDefinition
user
Point to the ID of the person or page you are going to add Google+ Badge for.
width
Sets the width of the Google+ Badge you’re going to add. Default is 300px
height
Sets the height of the Google+ Badge you’re going to add. Default is auto
theme
Sets the theme of the Google+ Badge. You can use ‘light’ or ‘dark’.
type
If you’re going to add a Person’s ID, then use ‘person’. If you’re going to add a page’s ID, then use ‘page’.
relation
Use it as you use the html attribute ‘rel’.
tagline
Setting ‘true’ will show the tagline from the person’s or page’s profile or setting ‘false’ will not.

Finally Enjoy This Shortcode And Do Share It With Your Friends :)

2 comments:

  1. Thanks Nitishk. Nice Post and thanks also for attaching our links. :)

    ReplyDelete

PLEASE NOTE:
We have Zero Tolerance to Spam. Spammy Comments and Comments with Links will be deleted immediately upon our review.
For More Rules Read Our Comment Policy