Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Main img alt tag ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-30-2014, 01:01 AM
 
frank_s frank_s is offline
 

Advanced Member
  
Join Date: Oct 2010
Posts: 35
 

Default 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.
__________________
X-cart Gold
4.6.4
Reply With Quote
  #2  
Old 09-30-2014, 04:07 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Main img alt tag ?

What "main" image? Can you provide a link to your site or a screenshot?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 09-30-2014, 06:07 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 09-30-2014, 11:36 AM
 
frank_s frank_s is offline
 

Advanced Member
  
Join Date: Oct 2010
Posts: 35
 

Default 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
__________________
X-cart Gold
4.6.4
Reply With Quote
  #5  
Old 09-30-2014, 12:18 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:58 PM.

   

 
X-Cart forums © 2001-2020