- Posts: 34
- Thank you received: 0
SEO and Alt Text
- davcraiguk
-
Topic Author
- Offline
Less
More
15 years 4 months ago #15317
by davcraiguk
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
SEO and Alt Text was created by davcraiguk
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.
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.
15 years 4 months ago #15320
by nicolas
Replied by nicolas on topic Re: SEO and Alt Text
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 ?
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.
- davcraiguk
-
Topic Author
- Offline
Less
More
- Posts: 34
- Thank you received: 0
15 years 4 months ago #15322
by davcraiguk
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Replied by davcraiguk on topic Re: SEO and Alt Text
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:
I appreciate there may be no way of passing in the correct ALT tag content.
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:
Code:
<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">
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15325
by nicolas
Replied by nicolas on topic Re: SEO and Alt Text
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:
With firefox you get:
So it seems that it's firefox which adds the ALT tag automatically.
Code:
<img style="-webkit-user-select: none" src="http://www.demo.hikashop.com/media/com_hikashop/upload/photo_2745_20081227.jpg">
With firefox you get:
Code:
<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.
- davcraiguk
-
Topic Author
- Offline
Less
More
- Posts: 34
- Thank you received: 0
15 years 4 months ago #15368
by davcraiguk
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Replied by davcraiguk on topic Re: SEO and Alt Text
Hi Nicolas,
I had a look at the 'Views' concerning your suggestion below
I had a look at the 'Views' concerning your suggestion below
but could net see where and what to do to add the alt tag. can you be a little more specific please?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.
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15369
by nicolas
Replied by nicolas on topic Re: SEO and Alt Text
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));
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.245 seconds