Skip to main content

How automatically add ALT and Title tags to blogger images?

How automatically add ALT and Title tags to blogger images?


We are always worry about SEO (search engine optimization) of our blogs. Images is the integral part of blogger posts. Many people do not know that search engines bot unable to read images, so tells about the images to search engines; we add Alt tags to all blog images. It is very difficult and time consuming to add manually Alt tag to all blog images. Today I am sharing a code that automatically adds ALT and title tag to your blogger images. With this simple and short code, you save a lot of time and optimize your blogger images with great ease.

How this code Work

This code takes the name of your image and use it as Alt and Title tag of your blog images. So, before use this code, give a proper name your images.

How to add this code

  • Go to your blogger dashboard and select desire blog.
  • Go to blog template and Edit HTML (Before adding this code backup your Template.)
  • Now Search the </body> in coding area 
  • Paste the below code just above </body> it.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.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.attr('title', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));$img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.'))); }); });//]]> </script>
  • Save the Template and enjoy it. 
After adding the code all your images automatically add ALT, title tags, and increase your search visibility. At last, I hope the short JavaScript codes help you to SEO your blogger images and save your time. If you like this post, share it on social media with your friends.

Comments

Popular posts from this blog

How to increase backlinks in 2015? Free backlink builder

A backlink is one type of algorithm that refers to incoming links to your site or pages. Backlinks play significant role to improve your search engine ranking and get more audience. They help to earn good money from the internet. Today’s post I am introducing top 10 backlinks building sites in 2015. Many online websites allow you to build some backlinks for your site. Let us view the sites to create free backlinks Imtalk . Org Imtalk basically a forum and offers many tools. It submits your sites more than 2500 pages. It offers many worthy tools like site directory submitter, bookmarks page etc. Imtalk create pages on different sites with a backlink to your site. Freebacklinkcreator . Com It submits your site thousands of do follow backlink websites. It offers speedy backlinks to your blog or website. A2z-Seo-Backlinks.Com It is a powerful tool to submit your link on different sites. The great feature of this backlink generator is that it also ping your link to search eng...

How to add Floating Social share buttons to blogger

No one denies the importance of social sharing in recent world. Social Media play significant role to bring quality traffic to your website or blog. Today’s post, I am introducing your best vertical social sharing buttons to bloggers. Floating buttons have the edge of the header or footer static buttons. It catches the eyes of your post reader and he can easily share it. Moreover, it's a vertical float with the page and your readers easily share it with a single click. According to analyses of social share button providers, vertical floating buttons more share as compared to static buttons. How to add Floating Social sharing Buttons, Firstly, make the backup of your blogger template.  Login to your blogger dashboard, >>go to Template>>Edit HTML  Find <html leave a space and add the following code after it.                               xmlns : fb=http : // ogp . me/ ns /fb#...

Top High Page Rank Dofollow Forums 2015 to Increase Backlinks

Quality backlinks are an important part of SEO (search engine optimization). They play a key role to increase your search engine ranking, Alexa ranking and brings quality traffic on your blogs. Every blogger strives to increase its backlinks to improve its presence in search engines. One thing to remember that a quality backlink has much importance on 1oo bad links. Now first we define what is a backlink? Backlinks, also known as incoming links, inbound links, inlinks, and inward links, are incoming links to a website or web page. In basic link terminology, a backlink is any link received by a web node (web page, directory, website, or top-level domain) from another web node. ( WikiPedia )  You can get quality backlinks from pro bloggers a number of ways, for example comment on posts, guest posts etc. Dofollow Forums 2015 First, I provide you 50+ High page rank dofollow comment blogs . Today, I am providing top high page rank dofollow forums 2015 to increase your b...