Get Bit.ly link shortener Auto Generate In Blog Post

In the present time bit.ly link shortener is a very large URL shortener company and it is the most trusted and old company. After that Goo.gl is also a very good link shortener. The people also liked this too. But still more people like to use short.ly’s link shortener. Because its link shortener is very small, which is also easy to remember. The best part is that this link shortener is absolutely free and if you want you can connect to it by purchasing your custom short domain. We will talk about it in the coming time. Now, we are going to tell you about auto generating in bit.ly shorted url post.

Step 1: First log in to Blogger and go to Blog Dashboard -> Themes -> Edit HTML.

Step 2: Now by pressing CTRL + F button]]> </ b: skin> find and then]]> </ b: skin> before adding the given code.

#shorturl {
float: left;
background: #F8F8F8;
padding-bottom: 10px;
border-top: 1px solid #d2d2d2;
border-bottom: 1px solid #d2d2d2;
padding-top: 10px;
width: 650px;
}
#shorternh2 {
float: left;
padding-left: 20px;
padding-right: 10px;
}
.textinpo {
float: left;
font-family: "verdana",helvetica,Tahoma,Arial,sans-serif;
font-size: 12px;
color: #666;
border: 1px solid #ccc;
border-radius: 3px;
background: #fff;
width: 215px;
padding: 0px!important;
padding-left: 10px!important;
height: 20px!important;
margin: -4px!important;
}

Step 3: Now press CTRL + F button again and search <div class = ‘post-footer’> and then copy and paste the following code below <div class = ‘post-footer’>.

<!-- Short URLs Script by LSVDPR -->
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='shoternUrl'>
<form id='shorturl'/>
 <!-- short url widget script start -->
  <script charset='utf-8' src='https://bit.ly/javascript-api.js?version=latest&amp;login=unbfacts&amp;apiKey=R_cb436480530becb8bb6e628aa34520f2' type='text/javascript'/>
<script charset='utf-8' type='text/javascript'>
BitlyClient.addPageLoadEvent(function(){
BitlyCB.myShortenCallback = function(data) {
// this is how to get a result of shortening a single url
var result;
for (var r in data.results) {
result = data.results[r];
result[&#39;longUrl&#39;] = r;
break;
}
       document.getElementById(&quot;shorturl&quot;).innerHTML = &quot;<div id='shorternh2'>share this link!</div> 
&lt;input type=&#39;text&#39;  
class=&#39;textinpo&#39; value=&#39;&quot; + result[&#39;shortUrl&#39;] + &quot;&#39; name=&#39;bitlyurl&#39;/&gt;&quot;;}
BitlyClient.shorten(document.location, &#39;BitlyCB.myShortenCallback&#39;);
});
</script></div>
    </b:if>
<!-- Short URLs Script by LSVDPR -->

Congratulations! Now Auto Post generation of Bit.ly has started in your blog. We have told in this post How to shorten your long link Very simple way There will not be any problem in you And your link address will be small Even when we know small links, we keep remembering Then we can send that link address very easily

There are many benefits too Creating a small link address So friends, how did you get this post If you like it, then share it