» Blogger » Search Engine Optimization tips for Blogger Templates (Part 3)

Amanda FazaniSearch Engine Optimization tips for Blogger Templates (Part 3)

Written by Amanda Fazani from Blogger Buster on March 10, 2008

One of the great things about Blogger is that we have access to the complete template. With a few simple tweaks Blogger users can easily optimize their blog template to achieve better rankings in search engines, which in the long run can attract far more visitors to our blogs.

This is the third and final installment of the SEO Tips for Blogger Templates series. In Part 1, I explained how the header section, meta tags and titles could be adapted for search engine spiders, while Part 2 dealt with optimizing all of the links contained within the template.

In this article, I will offer some tips to help you optimize all of the images in your Blogger blog, including those contained within widgets and inside your blog posts.

How Search Engines See Images in Your Site

Search engine spiders can only see the textual elements of your site; images are virtually invisible to them, unless you use ALT and TITLE tags to add unseen detail which can be read (and understood) by search engines.

ALT tags are of particular importance in optimizing images in your blog, as these specify “alternative text”: a description of the image which would appear if images are disabled in the readers browser and provide accessibility information for disabled readers. Many search engines view alternative text for images as an important aspect of the mark-up in web pages, and the strength of your site may be penalized if many images do not have ALT tags in place!

Alternative text appears within the image tags, like this:

<img src=”images/example.jpg” alt=”An Example of an Image” />

TITLE tags give the image a title, providing information of what the image is about which will be displayed if you hover your cursor over the image.

Title tags also appear within image tags, and are constructed as follows:

<img src=”images/example.jpg” alt=”An Example of an Image” title=”Title of Image” />

Both of these tags are considered essential elements in the <img> tags of websites, so it is important that you optimize your Blogger powered blog to reflect this.

Optimizing Images in your Blogger Template

The most important (and often overlooked) image in your blog template is the header image or logo.

If you use a header image in place of the title and description for your Blogger blog, the default template tags provide the title of your blog as the “alternative text” like this:

<img expr:alt='data:title' expr:height='data:height'
expr:id='data:widget.instanceId + "_headerimg"'
expr:src='data:sourceUrl' expr:width='data:width'
style='display: block'/>

You can find this section of code by checking the “expand widget templates” box as this is contained within the widget which displays your blog header.

Unfortunately, Blogger does not automatically provide a title for the header image. Luckily, it is very easy to add a title to the image tags, simply by adding the required code:

<img expr:alt='data:title' expr:height='data:height'
expr:id='data:widget.instanceId + "_headerimg"'
expr:src='data:sourceUrl' expr:width='data:width'
style='display: block' title='The Title of your Image'/>

If you have manually added any other images to your Blogger template, you should also add title and alternative text for these images. You can find image tags in your template easily by using your browser’s search function and searching for img.

Adding ALT and TITLE Tags to Images Contained in Widgets

Many Bloggers choose to add images to their sidebar using a “Picture” widget. Again Blogger adds “alternative text” to your image which is generated by the title of the widget itself.

It is possible to add a title to the image, and also change the alternative text (if you prefer).

The following section of code is an example of how a picture widget would appear in your Blogger template:

<b:widget id='Image1' locked='false' title='My Picture' type='Image'>
<b:includable id='main'>
    <b:if cond='data:title != ""'>
      <h2><data:title/></h2>
    </b:if>
    <div class='widget-content'>
      <img expr:alt='data:title'
	  expr:height='data:height'
	  expr:id='data:widget.instanceId + "_img"'
	  expr:src='data:sourceUrl'
	  expr:width='data:width' title='Your Image Title'/>
      <br/>
      <b:if cond='data:caption != ""'>
        <span class='caption'><data:caption/></span>
      </b:if>
    </div>
    <b:include name='quickedit'/>
  </b:includable>
</b:widget>

I have added a title to the image, which is highlighted in red.

Changing the alternative text for the image is a little different. You will need to change the following section in the widget code:

img expr:alt=’data:title’

to say something like this instead:

img alt=’Alternative Text of your Image’

This replaces the default alternative text with that which you have specified instead.

If you add an image in an HTML/JavaScript widget, or as part of a Text widget you can add ALT and TITLE text manually inside the image tags without having to edit your template code. Simply open up the editor for your widget (either in the Layout>Page Elements section of your dashboard, or by clicking the wrench icon displayed in a blog page) and add the relevant code to the HTML mark up of your widget.

Optimizing Images in Blog Posts

Like most Bloggers, I upload images to my posts using the image upload button. This adds the correct code to my blog post without having to code the whole thing by hand!

But (as usual!) Blogger does not optimize the image tags!

When you use the image upload feature, ALT text is added to the image tags, but nothing is contained inside it so it may as well be blank!

You can see this at work in the following example where the missing alternative text is highlighted in red:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"
href="http://bp3.blogger.com/[...]/A_Picture.jpg">
<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;"
src="http://bp3.blogger.com/[...]/A_Picture.jpg"
border="0" alt="" id="BLOGGER_PHOTO_ID_5175851698930009362" /></a>

While it wont do any harm to have no value to the alternative text (that is, to define alt=”"), it won’t do your blog any favors either! The best way to remedy this is to add your own alternative text between the two speech marks, which will be displayed for visitors who block images or use text-based browsers to read your site.

As in all of these examples, you can add title text to the image tags in your blog posts too, simply by adding the appropriate code.

After optimizing the example above, the code would appear like this:

<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"
href="http://bp3.blogger.com/[...]/A_Picture.jpg">
<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;"
src="http://bp3.blogger.com/[...]/A_Picture.jpg"
border="0" alt="A Picture" id="BLOGGER_PHOTO_ID_5175851698930009362" title="The Image Title"/></a>

Useful Resources

Here are some useful sites which can help you understand the techniques outlined in this post, and also for SEO in general:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Bumpzee
  • E-mail this story to a friend!
  • Ma.gnolia
  • Print this article!
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Amanda Fazani from Blogger Buster on March 10, 2008 | Filed Under Blogger
Unique Blog Designs

10 Responses so far | Have Your Say!

  1. web development blog  |  March 10th, 2008 at 12:18 pm #

    web development blog - Gravatar

    image alt tags should be used sparingly. they don’t have much weight and if not used properly can actually damage your site.

  2. hasnol  |  March 22nd, 2008 at 8:49 am #

    hasnol - Gravatar

    i honestly agree with you Amanda. an image in blog must be optimized but in the right way. you have shown the right way. keep your good work. :grin:

  3. Girl-Woman  |  March 26th, 2008 at 9:55 pm #

    Girl-Woman - Gravatar

    Now I am really concerned about my alt tags. Two issues:

    1. When I add img alt=’Alternative Text of your Image’ , it gives me an error message.

    2. In my posts I have been putting the title of the image in ” “. For instance, “Dog in Green Sweater”. Just so I am clear, I need to put “picture” and then add the title as, title:=”Dog in Green Sweater”?

    Thank you, thank you, thank you. You have helped me so much!

  4. Sparkable  |  March 31st, 2008 at 3:06 pm #

    Sparkable - Gravatar

    great way to key word stuff!

  5. taolaga  |  April 17th, 2008 at 5:55 am #

    taolaga - Gravatar

    oh thanks for your tips
    I’ve a question for you:
    I use title and alt tags in my post,2 options for me:
    Option1:

    Option2:

    What the way is better for SEO

  6. Vista Info  |  May 6th, 2008 at 8:06 pm #

    Vista Info - Gravatar

    Which is more important , ALT or TITLE in images? I usually put something in ALT but didn’t know about Title.

    Vista Shutdown

  7. Lukman  |  June 15th, 2008 at 9:59 am #

    Lukman - Gravatar

    11 out of 10 !

    Superb SEO guide for newbies - very well written in an easy to follow format, well done !

  8. TechGrunge  |  June 25th, 2008 at 12:06 pm #

    TechGrunge - Gravatar

    Ermm nice tips and i just apply it to my blog. :razz: hope more tips about blogging seo

Trackbacks to 'Search Engine Optimization tips for Blogger Templates (Part 3)'

  1. HighFivez.com: Your Guide Through The Blogosphere. Find Blogs and Blog Posts.
  2. SEO EDITION FOR BLOGGERS | purnomo.name

Leave Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>