Quote:
Originally Posted by TJ Stephens
Did anyone else lose their Alt tags on their images after installing this mod? When I view my source the alt tags are missing. For example, when I view source on my product page it shows the image src as follows:
Code:
[img]files/cache/9773b5481669712c6cb5f3ae3dbd3089.jpg[/img]
The slash right before the closing bracket is confusing to me. I'm not sure if it's from this mod or something else I did but my alt tags are gone and this slash is here instead. Would any other users of this mod please check to see if it is the same for you?
Thanks,
T.J.
|
The slash before the closing bracket is XHTML standard. The image mod is outputing this code. XHTML specifies that Б─°emptyБ─² tags such as
and <img> must close themselves by including a forward slash /> at the very end of the tag.
For the alt text for the iamge, make sure that the code that you inserted for the thumbnail looks like this:
Code:
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" class="NoBorder" alt=$product.product|escape}
Also, make sure that the code in the thumbnail.tpl file looks like this:
Code:
{thumb file="$tfile" width="`$image_x`" sharpen=$sharpen html="class=\"`$class`\" alt=\"`$alt`\""}
The biggest thing that you need to look at the the above code is the section that reads html="class=\"`$class`\" alt=\"`$alt`\""