SEO Optimize Your Blogger Blog By Adding this SEO Script
Well now exactly its nothing like something really special but it's a combination of three scripts all together that's external link's new tab opening script, links no-following script and automatic image title and alt tags script. So yes using this script and following above posted tutorials you would surely find a difference in your earlier and optimized stats. So now just follow below steps to see how to add this script to your blogger blog.
- Open
Blogger > Template > Edit HTML. - Press
Ctrl +F & search for</head>
tag & 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 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[
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[
$(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>- Now you can remove the red line in above code if you already have jQuery Script pasted in your blog template.
- So Now just hit Save Template and refresh your blog, as your blog is now optimized with this awesome SEO optimized script.
0 comments:
Thanks for Join us....!!!