SEO and Alt Text

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #15317

I have discovered a 2 inconsistencies in the assignment of the ALT tag to product images. The ALT tag of the thumbnail image on the product view itself displays correctly based on the 'file_name' field of the hikashop_file table.

1. The ALT tag of the thumbnail image in catogory view displays the 'product_name' field instead of the 'file_name'

2. The ALT tag of the pop of the full-size image in the Product view shows the URL of the image instead of the 'file_name' field. This is important as XML image sitemaps can be submitted to Google even if they come from within a javascript popup.

These are all important for SEO as Google especially reads and weighs-up these tags.


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #15320

Concerning your first point, we will change that for next release. You can do it yourself if you edit the view files "listing_..." via the menu Display->Views.

For the second point, the image in the popup is displayed automatically by the modal library of joomla/mootools. We just tell it to display the image within a popup via a link and the rest is not on our end. Besides, there is NO ALT tag on the image in the popup so I'm not even sure that we're talking about the same thing ?

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #15322

Thanks Nicolas,
Response is is a prompt as ever!

With regard to the squeezebox popup there is an ALT tag there, this is the HTML from firebug:

<img src="http://www.charitycanvasprints.com/media/com_hikashop/upload/Woman_of_dignity_in_Sierra%20Leone.jpg" alt="http://www.charitycanvasprints.com/media/com_hikashop/upload/Woman_of_dignity_in_Sierra%20Leone.jpg">
I appreciate there may be no way of passing in the correct ALT tag content.


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #15325

If you go on that page www.demo.hikashop.com/index.php?option=c...ow&Itemid=57&lang=en and open the image, here is the code you get with chrome:

<img style="-webkit-user-select: none" src="http://www.demo.hikashop.com/media/com_hikashop/upload/photo_2745_20081227.jpg">

With firefox you get:
<img src="http://www.demo.hikashop.com/media/com_hikashop/upload/photo_2745_20081227.jpg" alt="http://www.demo.hikashop.com/media/com_hikashop/upload/photo_2745_20081227.jpg">

So it seems that it's firefox which adds the ALT tag automatically.

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #15368

Hi Nicolas,
I had a look at the 'Views' concerning your suggestion below

Concerning your first point, we will change that for next release. You can do it yourself if you edit the view files "listing_..." via the menu Display->Views.

but could net see where and what to do to add the alt tag. can you be a little more specific please?


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #15369

You will find such code:
echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->product_name));
That you can change to:
echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name));

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum