Image Alternative Text - missing

V2.0.15 and V 2.10.



Why is no alternative text displayed when you hover a products image. I also note that external programs can not see the alternative text too. As this is a major part of SEO I really need this to work as I am guessing that Google does not see them too.



I have seen on other posts in the past that this was an issue but the fix for earlier version has done nothing. Just before anybody asks I am adding my alt text in the box under a products image.



Many thanks Guys

Your alt text is probably there, but you are talking about the title text.



To get the title text to show up you need to modify the file skins/you-skin/customer/common_templates/image.tpl



In 2.0.x



Change:


{if !($object_type == "category" && !$icon_image_path)}
{$images.icon.alt}
{/if}




To:


{if !($object_type == "category" && !$icon_image_path)}
{$images.icon.alt}
{/if}




In 2.1



Change:


{if !(($object_type == "category" || $object_type == "detailed_category") && !$icon_image_path)}
{$images.icon.alt}
{/if}




To:


{if !(($object_type == "category" || $object_type == "detailed_category") && !$icon_image_path)}
{$images.icon.alt}
{/if}




Hope that helps,



Brandon

[quote name=‘brandonvd’]Your alt text is probably there, but you are talking about the title text.



To get the title text to show up you need to modify the file skins/you-skin/customer/common_templates/image.tpl



In 2.0.x



Change:


{if !($object_type == "category" && !$icon_image_path)}
{$images.icon.alt}
{/if}




To:


{if !($object_type == "category" && !$icon_image_path)}
{$images.icon.alt}
{/if}




In 2.1



Change:


{if !(($object_type == "category" || $object_type == "detailed_category") && !$icon_image_path)}
{$images.icon.alt}
{/if}




To:


{if !(($object_type == "category" || $object_type == "detailed_category") && !$icon_image_path)}
{$images.icon.alt}
{/if}




Hope that helps,



Brandon[/QUOTE]



Thanks Brandon you are correct the alt text is there and thanks for the change above. I was thinking about two different things.



Mike

Hi,

I made the changes below, but for some reason the alt text and the title don’t seem to show up when looking at the page source.

Here is an portion of the code:

d=“det_img_29873” src=“/images/thumbnails/0/200/251.jpg” width=“200” alt=“” title=“” border=“0”

I do have a title for this image and a page title.





Also, I noticed that this is associated with the image in the code:

rev=“This is the same as “Alternate text””. What is rev=? This is the alternate text.



Also,

I had this same problem in an older version in 2008 and I was told to add this in the image.tpl |escape:html, which is not in the current code after Alt = and title=.



I also do not see anything when hovering over an image.



I am looking at this due to the posts related to images not being indexed.

I did a search and it said that Google may not index images if there is no alt content because Google would not know what the image is. Hard to index if it does not know how to index it.



I am using toy store template. Just wondering if everyone else can see alt and title contents in your page source code for images.



Thanks,

Bob

There is an add-on for firefox that allows it to show alt names now too



John

I tried this code but this hasn’t worked for me. Any idea?