Get more twitter followers by adding a official followers button on your blog. Installing such widget in your blog let's your readers to know the Fan followings of your blog, on the basis of which he/she decides a position for your blog in his mind. Normally a blog with large number of followers is considered to be the best blog by your reader itself and this force him in a way to visit your blog again and again.
We will be seeing how to install official twitter followers button in your blog.
■ Open Blog Dashboard → Layout
■ Open Add Gadget
■ Open Html/Javascript Editor
■ Paste below given code.
■ Open Add Gadget
■ Open Html/Javascript Editor
■ Paste below given code.
Jquery
<!-- Twitter follow button start --> <a href="http://twitter.com/USERNAME" class="twitter-follow-button">Follow @USERNAME</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <!-- Twitter follow button end -->
■ Replace the USERNAME with your twitter handle (username).
■ Below is the configuration settings for this widget. You can configure the look of the button by adding link-data attributes. Add it just next to class="twitter-follow-button"
Description
| Appearance | Data-attribute |
Default
| ||
Don’t show followers count
|
|
data-show='false'
|
Don’t show Twitter handle
|
|
data-show-screen-name='false'
|
Large button (shown here without count)
|
data-size='large'
|
■ Hit the save button and you're done.
Enjoy :)
0 comments:
Post a Comment