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'/]
Attribute | Definition |
---|---|
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 :)
Thanks Nitishk. Nice Post and thanks also for attaching our links. :)
ReplyDeleteYour Welcome Dear Shivansh :)
Delete