Latest Post

Saturday, 6 June 2015

How to Resize Font Awesome Icons?

While we use Font Awesome Icons in our website or Blog then often we face a problem about adjusting the icon size. This is quite easy but need to add a simple piece of code. So in this tutorial I will show you the way to resize the Font Awesome Icons.

By Default Font Awesome Icon size is small. And default code is below-

<i class="fa fa-diamond"></i>

This code represent the Diamond icon. But if you wish to increase the icon size little bit then you have to add a simple code just like below

<i class="fa fa-diamond fa-lg"></i>

large icon
here I just added fa-lg. Here lg means large. It will increase the icon to 33%. Again of you want to increase bit more the just add another simple code like below-

<i class="fa fa-diamond fa-2x"></i>

2x icon size
Here I have added fa-2x and this code will increase extra 33% than fa-lg size. So the icon will be big. That means your Icon is now 66% bigger than original icon. So similarly you can increase your Font Awesome Icon by adding 3x, 4x and 5x but not more than that.

<i class="fa fa-diamond fa-3x"></i>
<i class="fa fa-diamond fa-4x"></i>
<i class="fa fa-diamond fa-5x"></i>

adjust icon size

So this is really easy.
Now I will show you about resizing by using CSS code.
By using CSS coding we can easily give any size on Font Awesome icons. But in this case we have to use icon's code digit only. Please look carefully in below example-

<style>.resize:after {content:"\f219";top:0;font-family:FontAwesome; font-size:22px;left:8px;color:#222222;}</style>

In the above code line I have wrap with <style> and </style> for CSS support. And After that the main code I have wrap with div class, just like below.
<div class='resize'>Resize Icon</div>
increase size
In example I have written the code .resize:after that means after appearing the text the icon will appear. If you wish to appearance of icon before text then you have to write the code like .resize:before and this is really simple.   

And to resize the font size just change the font-size:22px; with lesser or greater font size. example font-size:25px;

I hope this article will help you to resize Font Awesome icon easily in your Blog. for any further help feel free to write me.
Read More

How to Add Featured Post in Blogger Homepage?

Featured post is most popular in WordPress site where we can easily make any post as author's choice or Editors pick or featured post. But in Blogger you can easily add this kinds of feature in your Blogger template. To do this just follow the below steps-

Adding CSS Code in Blogger Template

First of all we will add CSS code in our Blogger template. So please follow the below steps-

Step 1 Log in to your Blogger Account and Go to your Blogger Dashboard
Step 2 Click on  Now click on -> Template -> Edit HTML->

Step 3
 Now find the ]]></b:skin> by pressing Ctrl+F (Windows) or CMD+F (Mac)

Step 4 Copy the script from below and Paste it above/before ]]></b:skin>
/* Featured Post By www.bloggerspice.com */
.ribbon {
 position: relative;
 top: 0;
 right: 0;
}
.ribbon a {
 color: #fff;
 text-decoration: none;
}
.ribbon .banner {
 -webkit-transform: rotate(45deg);
 -moz-transform: rotate(45deg);
 -ms-transform: rotate(45deg);
 -o-transform: rotate(45deg);
 transform: rotate(45deg);
 color: #fff;
 -webkit-font-smoothing: antialiased;
 display: block;
 float: right;
 position: relative;
 right: -14px;
 top: 22px;
 width: 100px;
}
.featured-post-banner .banner {
 right: -8px;
 top: 15px;
 width: 65px;
}

.ribbon .banner::after,
.ribbon .banner::before {
 content: '';
 display: block;
 height: 12px;
 position: absolute;
 width: 30px;
}
.featured-post-banner .banner::after,
.featured-post-banner .banner::before {
 height: 6px;
 width: 20px;
}

.ribbon .banner::before {
 -webkit-transform: skewY(-45deg) translate(50%,15px);
 -moz-transform: skewY(-45deg) translate(50%,15px);
 -ms-transform: skewY(-45deg) translate(50%,15px);
 -o-transform: skewY(-45deg) translate(50%,15px);
 -webkit-transform-origin: 100% center;
 -moz-transform-origin: 100% center;
 -ms-transform-origin: 100% center;
 -o-transform-origin: 100% center;
 left: -45px;
}
.featured-post-banner .banner::before {
 top: -5px;
 left: -30px;
}
.ribbon .banner::after {
 -webkit-transform: translate(100%,-100%) skewY(45deg) translateX(-58%);
 -moz-transform: translate(100%,-100%) skewY(45deg) translateX(-58%);
 -ms-transform: translate(100%,-100%) skewY(45deg) translateX(-58%);
 -o-transform: translate(100%,-100%) skewY(45deg) translateX(-58%);
 -webkit-transform-origin: 0 center;
 -moz-transform-origin: 0 center;
 -ms-transform-origin: 0 center;
 -o-transform-origin: 0 center;
 right: -17px;
}
.featured-post-banner .banner::after {
 top: 18px;
 right: -12px;
}
.ribbon .text {
 position: relative;
 z-index: 2;
 padding: 6px 0;
 font-size: 12px;
 font-weight: bold;
 min-height: 18px;
 line-height: 18px;
 text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.20);
 white-space: nowrap;
 text-overflow: ellipsis;
}
/* text */
.featured-post-banner .text {
 padding: 3px 0;
 font-size: 8px;
 min-height: 14px;
 line-height: 14px;
}
.ribbon .text::before,
.ribbon .text::after {
 content: '';
 display: block;
 height: 30px;
 position: absolute;
 top: 0;
 width: 100%;
 z-index: -1;
}
/* text */
.ribbon.featured-post-banner .text::before,
.ribbon.featured-post-banner .text::after {
 height: 20px;
}

.ribbon .text::before {
 -webkit-transform: translateX(-15%) skewX(-45deg);
 -moz-transform: translateX(-15%) skewX(-45deg);
 -ms-transform: translateX(-15%) skewX(-45deg);
 -o-transform: translateX(-15%) skewX(-45deg);
}

.ribbon .text::after {
 -webkit-transform: translateX(15%) skewX(45deg);
 -moz-transform: translateX(15%) skewX(45deg);
 -ms-transform: translateX(15%) skewX(45deg);
 -o-transform: translateX(15%) skewX(45deg);
}
/*--- RIBBON COLORS ---*/
.ribbon-color .banner::after,
.ribbon-color .banner::before {
 background-color: #5BC3EE;
}
.ribbon-color .text::before,
.ribbon-color .text::after,
.ribbon-color .text {
 background-color: #5BC3EE;
}

Customization

To change the ribbon color please alter the #5BC3EE with different color code.

Step 5 hit the Save template button.

Finding the Post's HTML Code from Blogger Template

In this stage we will find the post's HTML code which one we want to make it Featured.  So..

Step 1  Go to your Blogger Dashboard


inspect element
Step 2 Locate the Post Title and right click on it after that click on Inspect Element option. Now post element will be visible at the bottom of the page. Now fold the post code. Thus it will look like below code-
<div class="post-outer"></div>
Step 3 And Now right click on it and select Edit As HTML. now copy the whole code by using Ctrl+C (Windows) or CMD+C (Mac) . 

And Paste the code in a notepad file in your PC by using Ctrl+V (Windows) or CMD+V (Mac).
Step 4  Now wrap the whole code by below code on text file.
<div class="ribbon featured-post-banner ribbon-color">
    <div class="banner">
        <div class="text">Featured Post</div>
    </div>
</div>
<div style='background:white;padding:10px;margin-top:10px;border-left:5px solid #5BC3EE; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.38);'>

Paste your Post's HTML Code Here

</div>

After wrap up the code it will be look like below image.

wrap up code
Everything is done. Now we will add this code inside a HTML/JavaScript gadget from Blogger Layout section.

Adding wrap up code inside HTML/JavaScript gadget

This is pretty easy task just follow the below steps-
Step 1  Go to your Blogger Dashboard
Step 2  Click on  Now click on -> Layout -> Add a Gadget-> A popup window will appear and now scroll down and select HTML/JavaScript gadget. Again another popup window will appear.  And leave blank the Title field.  

Step 3
 From notepad  copy the whole code and paste it inside Content field on HTML/JavaScript gadget.



JavaScript
Step 4 Now Click on orange color Save button. And again click on orange color Save arrangement button from Layout page.
Now check your Blogger site and see the Featured post at the top of the posts. I know this tutorial is bit complicated but I have tried with my best effort to make it easy. If you have any question regarding this tutorial then feel free to leave a comment below. Thank you. 
Read More

Thursday, 4 June 2015

How to Disable Address Bar Tracking Codes from AddThis widget?

AddThis is mostly popular for sharing blog content easily. Without any critical coding you can easily use this widget and your blog visitors will able to share your content. The main feature of AddThis widget that in it included almost all major social site's link thus user can share through this widget, as well as you will able to see the report that how many posts are shared by your blog readers weekly basis. But after using AddThis widget  you will see some extra letter appearing at the end of your Blog post links like below.
  • http://example.com/2015/12/since-it-helps-people-to-relax-fun-is.html#.VWqOmc-qqko or
This is a address bar tracking code. Address bar tracking codes are added to the URL in the address bar using JavaScript while using AddThis widget. They're just 11 character identifiers without service codes. Here are some examples:

#.USvVcVpAQco
#.USvU7qUot5l
#.USvVqOjpYys

Most of the users think that this problem arise from the template. But this is absolutely wrong. Because AddThis add an tracking code which will appear every time while a user click on post link. And if anybody share the content then AddThis widget track them easily.

However we can easily remove the AddThis widget tracking option thus after end of the post link some unwanted letter like this #.VWqOmc-qqko won't appear. So for disabling the tracking code just follow the below stesp-
Step 1 Log in to your blogger account and Go to Dashboard 

Step 2
 Click on Template-> Edit HTML->

Step 3 Now find the code like below
<!-- AddThis Button BEGIN -->
<div class='addthis_toolbox addthis_default_style '>
<a class='addthis_button_facebook_share' fb:share:layout='button_count'/>
<a class='addthis_button_tweet'/>
<a class='addthis_button_facebook_like' fb:like:layout='button_count'/>
<a class='addthis_button_google_plusone' g:plusone:size='medium'/>
<a class='addthis_button_pinterest_pinit'/>
</div>
<script type='text/javascript'>var addthis_config = {&quot;data_track_addressbar&quot;:true};</script>
<script src='//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5231XXXXXXXX' type='text/javascript'/>
<!-- AddThis Button END -->
</div>

Step 4 From the above line locate the tracking code. Which will be like below-
<script type='text/javascript'>var addthis_config = {&quot;data_track_addressbar&quot;:true};</script>
Step 5 Now simply replace true with false like below-
<script type='text/javascript'>var addthis_config = {&quot;data_track_addressbar&quot;:false};</script>
That's it. Now check your Blog post links and see that this #.VWqOmc-qqko tracking code is not appearing.

I hope this tutorial solve the issue about appearing unexpected letters after your Blog post's URL.
Read More

Integrate Social Network with Analytics to get Social activity Data

For emerging the Blog social network works like charms. We can easily share our content to social site and reach to large number of viewers. Social activity is now become large component to judge how a website gaining content visibility. But just by sharing the content you won't able to generate the main viewers of your Social contents.

Suppose you have YouTube channel and you want to get related social activity data in your Data Hub activity report, then you must link your YouTube channel URL in your Google Analytics account. In YouTube you will able to see the total number of views per video. But in Google Analytics you will able to see the activity stream.

In Google Analytics you can link all of your social sites but just adding social link you won't able to view the property on report, so for viewing the report you must add the your primary domain with your social site.  

For example, if you add www.youtube.com/example.com (your YouTube channel), also include your primary domain www.example.com.

However all the social sites are not integrated with Google Analytics. You can see the list of partners integrated with the social data hub includes:

  • AllVoices
  • Badoo
  • Blogger
  • Delicious
  • Digg
  • Diigo
  • Disqus
  • Echo
  • Gigya
  • Google+
  • Google Groups
  • Hatena
  • Meetup
  • Read It Later
  • Reddit
  • Screen Rant
  • SodaHead
  • TypePad
  • VKontakte
  • yaplog!
social hub

So if you link the above social pages then you will able to see the details report on Google Analytics. For linking social sites just follow the below steps-

Step 1 Go the http://www.google.com/analytics/ and Sign in to your account 

Step 2 Click on Access Google Analytics and From Analytics dashboard click on Admin from top navigation.
Step 3 Now under ACCOUNT  Select your Google Analytics account that you want to link with your social site.  

social settings
Step 4 Now Google Analytics management setting page will appear. From there locate POPERTY and at that column click on Social Settings. 

add social link

Step 5 Now click on Add button and fill up the blank field with your Primary Domain URL first and after that add your Social site's URL one by one.


Important note, by entering one or more prefixes (eg. www.youtube.com/user/myuser) you will only get social activities against those domains. So if you wish to continue seeing social activities for your primary domain please add that as well (eg. example.com).

Step 6 Finally click on blue color Apply button.

That's it. You have successfully link your social site with Google Analytics site. Now the your social activity data will be visible in your Google Analytics report.

How to View the Social Activity Data?

After linking your site it will take time to see the data. Because Google Analytics will take time to process the data. To view the data just go to-

Step 1 Go the http://www.google.com/analytics/ and Sign in to your account 

Step 2 Click on Access Google Analytics and From Analytics dashboard click on Reporting from top navigation.
Step 3 Now from left side vertical menu click on ->Acquisition->Social->Overview tab. You will see the complete social activity data.

shared URL
Step 4 To view the referral URL Click on Shared URL link under Pages.

social activity
I hope this tutorial will help you to get the social activity data in your Google Analytics dashboard. Thank you.
Read More

Advance Sitemap or Table Of Content For Blogger Site

Table of content is most popular widget in website or blog. While a visitors visit their Blog then they might want to see the all posts at a glance. So there Sitemap widget is work effectively for this kinds of Website or Blog readers. However I have share before a beautiful and simple table of content and today I am going to share another beautiful advance Sitemap or Table of content widget for Blogger site. This widget will add an easy navigation system between your Blog sitemap and content. 

However advance sitemap or table of content widget will give a professional touch in your Blogger site.  

Feature of this Table of Content-
  • Visitors can see all Latest posts at a glance.
  • Posts will display as 2 column with number of comments.
  • Readers can view posts by specific label.
  • Posts by label can be expend by using Load More (infinity loop) option.
  • Visitors can Easily navigate in any post.
  • Reader's can search posts by keywords.
  • Not any extra loading time required.
  • Your site will get professional touch.
The installation procession is quite easy. Just follow the below steps-

Step 1 Sign in to your Blogger account and go to Dashboard
Step 2 From the Dashboard, click New page from Pages tab.
Step 3 After that now switch Compose view to HTML view and paste the all below code CSS+HTML+JavaScript at a time.

  • CSS Code For Sitemap
<style>
/* CSS Sitemap  by http://www.bloggerspice.com */
#table-outer table {width:100%;margin:0;padding:0;}
#table-outer input, #table-outer select {padding:4px;font:inherit;background:#fff;width:170px;box-sizing:border-box;border:none;color:#444;border:1px solid #eaeaea;transition:all 0.6s;}
#table-outer select {cursor:pointer;outline:none}
#table-outer input:focus{outline:none;background:#fff;border-color:#dadada;}
#resultDesc {margin-bottom:10px;}
#feedContainer {overflow:hidden;margin-top:20px;}
#feedContainer strong {font-size:10px;}
#feedContainer, #feedContainer li {padding:0;margin:0;list-style:none;}
#feedContainer li {float:left;width:50%;margin-bottom:5px;position:relative;z-index:0;}
#feedContainer .inner {display:block;height:72px;padding:10px;margin:5px 5px 0 5px;position:relative;background-color:#fff;box-shadow:0 0 0 1px #eaeaea;opacity:0.9;transition:all 0.6s;}
#feedContainer .inner:hover {opacity:1;box-shadow:0 0 0 1px #dadada;}
#feedContainer img {float:left;margin: 0 8px 0 0;max-width:100%;padding:1px;background:#ddd;}
#feedContainer .toc-title {max-height:33px;overflow:hidden;color:#444;font-weight:400;}
#feedContainer .toc-title:hover {color:#404040;}
#feedContainer .news-text {font-size:11px;display:none;}
#feedNav a, #feedNav span {display:block;text-align:center;color:#fff;
background-color:#444;padding:5px 0;width:100%;margin: 0 auto;margin-top:10px;transition:all 0.3s linear;}
#feedNav a:hover, #feedNav span:hover {background-color:#444;transition:all 0.3s linear;}
#feedContainer .date {display:none;position:absolute;bottom:0;right:0;background-color:transparent;color:#fff;font-size:9px;padding:3px 2px;width:35px;}
#feedContainer .date .dd {font-size:9px;line-height:5px;font-weight:bold;}
#feedContainer .date span {display:inline-block;line-height:5px;text-align:center;
margin-left:5px;}
</style>

  • HTML Code For Sitemap
<div dir="ltr" style="text-align: left;" trbidi="on">
<div id="table-outer">
<table><tbody>
<tr><td><label>Sort posts by : </label></td><td><select id="orderFeedBy"><option selected="" value="published">New post</option><option value="updated">Post updated</option></select></td></tr>
<tr><td><label>Filter posts by category : </label></td><td><span id="labelSorter"><select disabled=""><option selected="">Loading...</option></select></span></td></tr>
<tr><td><label>Search by keyword : </label></td><td><form id="postSearcher">
<input type="text" /></form>
</td></tr>
</tbody></table>
</div>
<br />
<header id="resultDesc"></header><br /><br />
<ul id="feedContainer"></ul>
<div id="feedNav">
Loading...</div>

  • JavaScript Code For Sitemap
<script src="https://googledrive.com/host/0B3jgs-7rv9eUMUwwZTZZaWVxbms" type="text/javascript"></script>
Step 4 And now simply click on Publish button from top right corner. 

sitemap demo
Now check your Sitemap or Table of Content page. Your Sitemap will be look like above image. I hope this will love your Blog visitors. For any further query feel free to write me.
Read More

Saturday, 2 May 2015

Google Rolled out the Mobile Friendly update for Rank Signal


April 21, 2015 Google has globally rolled out the mobile-friendly update. This algorithm update will give rank signal for individual website. Currently more than 60% traffic are coming from Smartphone so Google is boosting the ranking of mobile-friendly pages on mobile search results. As a result now any use can instantly find out the desired content from relevant search results where text is readable without tapping or zooming, tap targets are spaced appropriately, and the page avoids unplayable content or horizontal scrolling.

What does ‘mobile friendly’ mean?

Alternatively Mobile-friendly site means a website with responsive design that adjusts to the reduced size of a mobile screen. Mobile friendly websites will automatically adjust height and width according to mobile screen size, It will also adjust the-
  • Readable characters of posts.
  • Adjust the image sizes according to screen.
  • It will be Faster to load
  • Touch-screen friendly links
mobile friendly responsive

However there are zillions of website using templates which are not mobile friendly. Specially here the indication is non-responsive template. If you are using responsive template then your site will be mobile friendly but if your template is not responsive then you must change you template or theme. Because your site's search traffic from mobile device will highly affected. The main effects of this mobile-friendly algorithm updates by Google are as follows-
  • This mobile-friendly algorithm will affects only search rankings on mobile devices
  • Your site's search results affects in all languages globally. That means whatever your Blog language the algorithm will affect due to algorithm update.
  • But mobile-friendly algorithm applies to individual pages, not entire websites.

If you see that recently your traffic has increased or decreased dramatically then you have to understand that your site has affected by mobile-friendly algorithm updates. So increasing traffic is good for your site and this means your site is mobile friendly but if your site's traffic decreased then you must change your template and use a responsive template thus it can get better rank in mobile search result.
Google use variety of signals to rank a website or Blog in search result, so you should walk into the Google's guided pathway thus your site get higher page rank in search result.  If your site has great quality content but not mobile friendly then still there are a chances to get high rank in mobile search but we shouldn't rely on chances, instead of this simply change your template or redesign to make it mobile friendly.

How to perform Mobile-friendly test?

Now the question is how we will understand that our site is mobile friendly or not? This is very simple, Google has its own Mobile-friendly testing tools.
Step 1 Go to https://www.google.com/webmasters/tools/mobile-friendly/ link 

Step 2 And type your Website or Blog URL (example: http://www.fttunes.blogspot.com/ ) in the blank field and click on blue color ANALYZE button.

Step 3 Instantly Blogger will display the result. If your site is mobile friendly then you will get a green message Awesome! This page is mobile-friendly. Otherwise the tools will display red signal. You can see the Mobile friendly site's example below. For example purpose I have tested my site in Google Mobile-friendly testing tool.
I hope you will check your site for mobile friendliness and get better rank on Mobile search result.  Thank you.
Read More