Friday, October 18, 2013

Get Your Blog SEO Optimized by Adding Script


 Today i am found new and latest script that easy to understand and install in you blog. It will boost a lot of things due to its SEO friendly nature it will surely get more visitors from search engines. It will provide you with more high search results and decrease bounce rate of your blog.
It is combination of three scripts all togehter that external links no-following script, links opening in new tab script and image title and alt tags script.

How to Install Script in Blogger:

1. Go Blogger > Template > Edit HTML

2. Now Press Ctrl +F and Search </head> code in your template, and paste below code above it.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>//<![CDATA[
jQuery('a').each(function(){// Let's make external links nofollow. var href=jQuery(this).attr('href');if (typeof href !='undefined' && href !="" && (href.indexOf('http://') !=-1 || href.indexOf('https://') !=-1) && href.indexOf(window.location.hostname)==-1){jQuery(this).attr("rel", "nofollow");}});//]]></script>

<script type='text/javascript'>//<![CDATA[
jQuery('a').each(function(){// Let's make external links open in a new tab. var href=jQuery(this).attr('href');if (typeof href !='undefined' && href !="" && (href.indexOf('http://') !=-1 || href.indexOf('https://') !=-1) && href.indexOf(window.location.hostname)==-1){jQuery(this).attr("target", "_blank");}});//]]></script>

<script type='text/javascript'>//<![CDATA[
$(document).ready(function(){$('img').each(function(){var $img=$(this);var filename=$img.attr('src') $img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));});});//]]></script>


3. Now Save your template and refresh your blog.

In this way you get your blog SEO Optimized with no-following option , automatic externals links and image tags and opening links in new tab. So I am sure you get more visitors from search engines.

0 comments:

Post a Comment