Automatic SEO for Images - Add Proper ALT and Title Tags Automatically

Automatic SEO for Images - Add Proper ALT and Title Tags Automatically
Earlier i told you best seo tips for images which were all manually to be followed. However, its not that easy to optimize each and every image for search engines. So, here is a JavaScript code for your blog which will add all necessary attributes such as ALT, Title etc to your images and optimize all your blog images for search engines. This is one of the easiest way to optimize all images in your blog posts and implementation process only takes less than a minute. This will not only optimize new images but will also optimize all images that your blog have in older posts.


  • Go to Dashboard > Design > Edit HTML (else move to next step)
  • Now, search for code in your template (tip: press CTRL + F and paste this code)
  • Paste below given code just Before </body>
Automatic SEO for Images - Add Proper ALT and Title Tags Automatically
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[ $(document).ready(function() {
$('img').each(function(){
var $img = $(this);
var filename = $img.attr('src')
$("img:not([alt])").attr('title', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));
$("img:not([alt])").attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));

//]]>
</script>
Save Your Template

14 comments:

This Article Folsol.com ..

But Thanks For Sharing

Reply
Anonymous
10/5/12

アバクロ 通販:www.afinjapan.com
アバクロ メンズパーカー:www.afinjapan.com/category-487-b0.html
ホリスター Tシャツ:www.afinjapan.com/category-519-b0.html
アバクロ アクセサリー:www.afinjapan.com/category-522-b0.html
アバクロ キャップ:www.afinjapan.com/category-523-b0.html
アバクロ チェーンベルト:www.afinjapan.com/category-524-b0.html
アバクロ ダウン レディース:www.afinjapan.com/category-528-b0.html
アバクロ ダウンジャケット:www.afinjapan.com/category-529-b0.html
アバクロ ダウンベスト:www.afinjapan.com/category-530-b0.html
アバクロ レディースサンダル:www.afinjapan.com/category-511-b0.html
アバクロ トップス:www.afinjapan.com/category-513-b0.html
アバクロ レディース長袖Tシャツ:www.afinjapan.com/category-517-b0.html
アバクロ ロングパンツ:www.afinjapan.com/category-506-b0.html
アバクロ Tシャツ:www.afinjapan.com/category-491-b0.html
アバクロ カップル:www.afinjapan.com/category-521-b0.html
アバクロ ショートパンツ:www.afinjapan.com/category-508-b0.html
アバクロ 長袖Tシャツ:www.afinjapan.com/category-494-b0.html
アバクロ スカート:www.afinjapan.com/category-525-b0.html
アバクロ ジャケット:www.afinjapan.com/category-493-b0.html
アバクロ メンズ:www.afinjapan.com/category-486-b0.html
アバクロ ジーンズ:www.afinjapan.com/category-492-b0.html

アバクロ シャツ:www.afinjapan.com/category-489-b0.html
アバクロ ニット:www.afinjapan.com/category-488-b0.html
アバクロ メンズロング パンツ:www.afinjapan.com/category-495-b0.html
アバクロ メンズショートパンツ:www.afinjapan.com/category-496-b0.html
アバクロ レディース:www.afinjapan.com/category-500-b0.html
アバクロ 長袖ポロシャツ:www.afinjapan.com/category-504-b0.html
アバクロ ロングパンツ:www.afinjapan.com/category-506-b0.html
アバクロ スカーフ:www.afinjapan.com/category-510-b0.html
アバクロ トップス:www.afinjapan.com/category-516-b0.html
アバクロ ビキニ:www.afinjapan.com/category-526-b0.html

Reply

Can you tell us more about this? I'd love to find out more details.

Feel free to visit my web blog - annander-motorsport.se

Reply
Anonymous
23/5/13

i like your articel, good content. thanks ya :D

Reply
23/7/13

thank you veri mauch
obat kuat herbal

Reply
20/9/13

Very nice and informative seo tips . Thanks for sharing this.

Reply
13/2/16

Post a Comment

:) :( :)) :D =))
Loading Comment Form