ShoutMeLoud – Shouters Who Inspire

Superlinks
≡ Menu
≡ Menu

[BlogSpot SEO] Simple Script to Optimize Your Blog for SEO

rainmaker
[BlogSpot SEO] Simple Script to Optimize Your Blog for SEO

seo script for blogger 125x125 This post is rather intended to blogs run on blogger than to ones on WP because WP users have the platform to make their blog SEO optimized whereas those on blogger do not. They need to manually add alt & title tags to their images and specify a rel=”nofollow” & target=”_blank” for external links that they use in their post editor. Specially it’s a wise advice to keep your external links (Non useful) nofollow and open them in new tab. By making all external links open in new tab, you help lowering down bounce rate of your blog.  Being a blogger, have your ever imagined a script that will automatically do this job rather than you sitting and adding them individually?

Well, that’s what we’ve got here! In this article, I’ll share a script that will automatically add alt & title tags to the images that you post based on the name of your image. Similarly, the script will automatically find out links that are external on your blog to append them with tags that will make it nofollow and open the same on a new tab. As I mentioned earlier, these are simple SEO solutions aimed at blogs run on blogger.

In short this script will help you to do three things:

  • SEO optimization of Images on your Blog
  • Open External links in new tab
  • External links will be nofollow.

HOW THIS WORKS?

Basically, the script is divided into four parts (marked using comments). The first part will search for the external links on your blog and append them with target=”_blank”. By doing so, we make the link open on a new tab. The second part of the script will perform a similar search function but  append with the anchor tag with rel=”nofollow” to ensure that your link juice is not spread to other blogs.

The last part of the script (both 3 &4) is aimed at optimizing the images for SEO. The script will pick up the name of your image from the source and use the same to append the img tag with alt and title tags. For example, if you upload an image using the post editor and look out for the img tag on blogger, you will find the following tag.

<a href="http://4.bp.blogspot.com/..../s1600/Web-Traffic.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="100" src="http://4.bp.blogspot.com/..../s200/Web-Traffic.jpg" width="120" /></a>

By using the script below, you’ll find the above tag being changed to the one shown below.

<a href="http://4.bp.blogspot.com/..../s1600/Web-Traffic.jpg" imageanchor="1" rel="nofollow" target="_blank" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Web-Traffic" title="Web-Traffic" border="0" height="100" src="http://4.bp.blogspot.com/..../s200/Web-Traffic.jpg" width="120" /></a>

Many people would not agree with the rule of using the image name as an alternate text or title. Or in some cases, they won’t accept with all the external links being nofollow. If you are one among them, then remove that particular part from the script given below. For example, if you are happy with all external links opening on a new tab and all images possess some alternate text rather than nothing, then remove only the second and fourth part from your script and leave the 1st and 3rd intact. If you find it difficult to understand, then leave a comment below and get it clarified!

INSTALLING THE SCRIPT

1. Navigate to “Design >> Edit HTML” and make a backup of your template by clicking on the “Download full template” link at the top of the page. Once the back up is over, search for the following piece of code.

</body>

2. Download this text document – SEO SCRIPT FOR BLOGGER. Paste the code present in it just above the line mentioned in step 1.

3. Save your template and your done!

WP users can also follow the same steps mentioned above, if interested, expect that your method of backing up the template/theme is little different from that on blogger. BlogSpot bloggers if you find this script useful, do share about this on your blog too.

  • Author Bio

  • Latest Post

Article by Mukund

Mukund has written 30 articles.

If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.


{ 32 comments… add one }

  • Watt

    I’m confused. Where is the change? This is a javascript, right? How can it change the SEO?!?

    Reply
  • Amit

    I use Windows Live Writer to write posts on my Blogger blog, which provides all three features mentioned in the script, the only problem is that we have to configure them manually.

    Reply
  • Mukund

    Well, sure! Why not… Just ping me on gtalk and I’ll help you out!

    Reply
  • Sharefunstuff.in

    Mukund Not working ..

    image Seo .. i try many times ..

    plz tell me what i add or what i Not add ..

    you can check my template source .. what correction i have to make ..

    thanks

    Reply
  • Sharefunstuff.in

    Mukund .. Idea was excellent ..

    But image Seo not works ..
    when i upload image nothing seo code comes .. which told above in your post .. you check again ..

    you can check my blog .. i have used full script ..
    sharefunstuff.in

    ok
    please Reply ..

    Reply
    • Mukund

      Well, I’ve checked the codes on various demo blogs and it works. Please remove the first line of the script if you already have a jquery file running on your blog. If you still find issues, then let me know!

      Reply
  • GoldeN

    Hope gonna help improving my SEO of my site too.
    Thanks for sharing buddy :)

    Reply
  • Bharath Mandava

    Nice work mukund…..this script is awesome…hope it works well…

    Reply
    • Mukund

      Yup! Thanks Bharath! You can very well check the same by viewing the page source of your blog.

      Reply
  • fazal mayar

    I used blogspot in the past, i think this will help me improve my seo on blogspot

    Reply
    • Mukund

      Yes! It should! Thanks for the comment:)

      Reply
  • shenoyjoseph

    i m from blogger hope these seo script method can improve my traffic from search engine.

    Reply
    • Mukund

      Well, it should! Nevertheless, it should reduce your bounce rate at least:)

      Reply
  • Irfan Shakeel

    I have a question Mukund S. Why dont you use this script on your blog?.. The images and external link of your blog open in the same page…

    Reply
    • Mukund

      Well, there are articles which are paid reviews on my site. By adding the script above, I’ll make the links nofollow which I should not! Hope you got the answer!

      Reply
  • Ayush Jain

    Thanx.. For the Script Mukund Gonna Try This.. !! :)

    Reply
    • Mukund

      Yeah! Try the same and let me know if you like it!

      Reply
  • shan ali

    i have added the script mukund ….. thanx a lot…. you can view my blog….

    Reply
    • Mukund

      Yup! Glad that you made use of the script! Hope it helps improve the SEO of your blog:)

      Reply
  • Irfan

    Great to hear that now blogger user too can manage their SEO. Thanks

    Reply
  • Amit

    Though this is Great for Bloggers who are on Blogspot platform ,I left blogger just three months ago .It was great ,Thanks

    Reply
    • Mukund

      Bad luck but nevertheless you can spread the article to your friends on blogger so that, they can benefit out of this script:)

      Reply
      • Retliff

        Hi Mukund!
        Great job as always!

        Reply
  • Ramakrishnan

    This post will help me to improve seo of my blog, thanks mukund.

    Reply
  • sreekumar sukumaran

    I have been facing the problem of lower traffic on Search Engine. I have followed your instruction on my blog. Now let us see the difference. Thanks anyway for the help.

    Reply
    • Mukund

      You need to wait before you see some changes! I suggest you to spread your articles via Social networking sites/communities! You’ll definitely see an improvement in your traffic:)

      Reply
  • Sagar

    Thanks for the update Mukund, would implement it on my blog now, coz I liked the idea of opening the link in a new tab though it can be irritating sometimes :P

    Reply
    • Mukund

      Yes! You can install any part of the script you want. You have complete control over the code!

      Reply
  • Surender Markam

    I added this script on my blog. Now, waiting for some seo changes on google webmasters.

    Reply
    • Mukund

      Hmmm! Why wait? To see if the script is actually working or not? View the page source of your blog and you’ll find the alt and title tags added!

      Reply

Leave a Comment