View Single Post
  #408  
Old 09-19-2012, 02:25 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Ability Template v4.4.x

Quote:
Here is a good example of a page that has them.
If you check the source code, you'll see they already have ALT tags.

If using Firebug, right click on an image and select 'inspect element'.

If you want to add TITLE tags instead, edit skin/common_files/modules/Detailed_Product_Images/product_images.tpl

Replace...

Code:
<img src="{if $i.image_url}{$i.image_url|amp}{else}{$xcart_web_dir}/image.php?id={$i.imageid}&amp;type=D{/if}" alt="{$i.alt|escape}"{if $smarty.foreach.images.last} class="last"{/if} />

With...

Code:
<img src="{if $i.image_url}{$i.image_url|amp}{else}{$xcart_web_dir}/image.php?id={$i.imageid}&amp;type=D{/if}" alt="{$i.alt|escape}" title="{$i.alt|escape}"{if $smarty.foreach.images.last} class="last"{/if} />
Or, for a caption, you can add this code after the code above...

Code:
<p align="center">{$i.alt|escape}</p>

Etc.
__________________
xcartmods.co.uk
Reply With Quote