![]() |
Main img alt tag ?
When doing a SEO analyzer on our site we seem to be getting a small penalty for not having an alt tag for the main image.
I can see how to add this for detailed images however unable to find where or how to place the alt tag for the main image. Any help would be appreciated and Thank You. |
Re: Main img alt tag ?
What "main" image? Can you provide a link to your site or a screenshot?
|
Re: Main img alt tag ?
You don't have to have alt tag text - it can be empty. But you have to have the tag itself
<img src="xxx" width="xxx" height="xxx" alt="" /> - is correct <img src="xxx" width="xxx" height="xxx" alt="xxx" /> - is correct <img src="xxx" width="xxx" height="xxx" /> - is incorrect The images references (like products, categories, etc) are generated by calling product_thumbnail.tpl and passing values to it for the different tags. If you pass an empty value for a tag (or no value at all) it will not be included. You have to look at this file and make sure alt tag is always displayed no matter what and then look at the template showing "main" image and see if it passes value to alt tag if you want to have one. |
Re: Main img alt tag ?
Steve
Below is the way item(s) are being shown to me using Firefox and inspect element. Some parts are X out on purpose I think enough is left for this discussion. <img id="product_thumbnail" src="http://www.xxxx.com/images/P/xxxxxxxx%xxxxx%20x%20750.jpg" width="238" height="238" alt=" description text" title="description text"> If I am reading your post correctly then we should not be getting this error with the above code in place. I am running this through Bing Webmaster SEO Analyzer and the report states: The <img> tag does not have an ALT attribute defined. Thank you for your time. Frank |
Re: Main img alt tag ?
If it shows like this
<img id="product_thumbnail" src="http://www.xxxx.com/images/P/xxxxxxxx%xxxxx%20x%20750.jpg" width="238" height="238" alt=" description text" title="description text"> there is an alt tag defined. You are probably looking at the wrong image |
| All times are GMT -8. The time now is 04:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.