| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Adding the Product Title to Detailed Image Alt Tag | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Hi,
The images we use for our products have very basic descriptors for the alt tags, so I'd like to have the title inserted, followed by the descriptor--the inputted alt tag for the image--like this: Title - Descriptor I've tried ammending the alt tag in /modules/Detailed_Product_Images/product_images.tpl to: "{$product|escape} - {$images[image].alt|escape}" but this didn't work (I got the {$product|escape} from the thumbnail image, which on the same page, does have the title as its alt tag. Can anyone help me out here? Thanks, Jeremy
__________________
Version 4.0.17/4.0.18 |
|||||||
|
#2
|
|||||||
|
|||||||
|
Try {$product.product}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#3
|
|||||||
|
|||||||
|
Brilliant! Thanks!
__________________
Version 4.0.17/4.0.18 |
|||||||
|
#4
|
|||||||
|
|||||||
|
Can someone expand on this? I don't see where what to replace with "{$product.product}" in \product_images.php
__________________
Scott DeToffol Online Marketing and E-Commerce Consulting in Minneapolis X-Cart Gold Version 4.1.9 for www.sundogtrading.com X-Cart Pro Version 4.2.3 for www.heavyglare.com |
|||||||
|
#5
|
|||||||
|
|||||||
|
Quote:
Code:
In this case, the alt tag on the website reads "TITLE - Item's given alt tag"
__________________
Version 4.0.17/4.0.18 |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||