TechiMonk

  • home
  • about
  • contact
  • learn bogging/making money online

Automatically Add Alt Tag And Title Tag In Images For Blogger

Posted by Prince jain in: Blogger Tricks SEO
Before we had posted that it is necessary to optimize images in blogger for getting traffic or increasing your site SEO. Now this time we have another trick by that you don't have to remember to optimize your images it can Automatically Add Alt Tag And Title Tag In Images For Blogger. This trick will give you huge traffic because all your images have been optimized using this trick, you don't need to optimize single-single images. And also this trick will reduce your site error. By the way its not a trick its a simple script only just you have to add or install it in your blog.


Many bloggers are sharing this script but most of them script was not working. I have the working script used by me.

And if you don't know what is title tag and alt tag than your can first read out this :- Optimize Images In Blogger To Increase Blog Traffic.

How this Auto Alt and Title adding script Works ?

It is an simple java-script which reads your image name (Uploaded through PC).
You just have to give your image a correct name in your PC.
Name your image according to your post keyword or your post title.

How to add auto alt & title tag script in blogger ?

Follow below guide to apply this trick.

Step 1: Login to your Blogger dashboard >> Navigate to template section.

Step 2: Backup your template first before adding this script.

Step 3: Now click on "Edit HTML".

Step 4: Press Ctrl + F and search for </body> tag.

Step 5: Copy the below script and paste it just above </body> tag.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>
//SEO SCRIPT By - TechiMonk.com
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function() {
$('img').each(function(){
var $img = $(this);
var filename = $img.attr('src')
$img.attr('title', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));
$img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));
});
});
//]]>
</script>

Step 6: Click on Save template.

That's it. Now your blogger images will automatically optimize according to your images name. This Automatically Add Alt Tag And Title Tag In Images trick will be very useful for your blog to increase traffic. Now it's your turn share this and give some credit to our blog by adding our site link. Because you know we trust in Sharing is Caring :-).

About Imran

Imran Uddin is the founder of All Tech Buzz, a popular tech blog dedicated for Geeks and Bloggers. You can follow me on Facebook or you can connect with me on Twitter @Imran_ATB, Follow me on Google Plus

Email: blogger.cbit@gmail.com Services

4 comments:

  1. Tejpal Choudhary23 May 2014 at 18:34

    Thanks bro ,i am looking for these script and visited thousands of sites but did not work any script .Hope these help me to add alt tag to all images.

    ReplyDelete
    Replies
      Reply
  2. Zinavo-Web Design | Web Development | SEO | Mobile Apps | ERP/CRM27 March 2017 at 00:39

    This is wonderful information, Thank you sharing this. Web Designing Companies Bangalore | Web Design Companies Bangalore

    ReplyDelete
    Replies
      Reply
  3. Ancy merina13 February 2018 at 01:14

    This comment has been removed by the author.

    ReplyDelete
    Replies
      Reply
  4. ArRahim13 October 2019 at 08:47

    this is greats..thanks man.

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Newer Post Older Post Home
Powered by Blogger.

Search This Blog

About Your Blog

Quick Navigation

Featured Content

"© Copyright 2014" All Tech Buzz · All Rights Reserved · And Our Sitemap · All Logos & Trademark Belongs To Their Respective Owners·
Template Developed By www.alltechmedia.org & Powered By www.alltechbuzz.net |

Shared By Blogging Tips And Tricks