catalin-s Posted January 18, 2013 Share Posted January 18, 2013 I would like to compose the Title tag of the images to be able to include the values for one attribute of the product. Any idea how to do that? Cheers, Adrian. Link to comment Share on other sites More sharing options...
Dh42 Posted January 18, 2013 Share Posted January 18, 2013 You will have to edit the product.tpl file if you want to do them on the products page, the product-list.tpl file if you want them on the category pages. What I do is use the same description for the alt tag and the title tag. You could use the product name too. Link to comment Share on other sites More sharing options...
catalin-s Posted January 18, 2013 Author Share Posted January 18, 2013 Thanks for the quick answer. I would like to use them on both places, on product and category pages. Could you explain how to edit the product.tpl and product-list.tpl files? Cheers, Adrian Link to comment Share on other sites More sharing options...
Dh42 Posted January 18, 2013 Share Posted January 18, 2013 What version of prestashop are you using? Link to comment Share on other sites More sharing options...
catalin-s Posted January 18, 2013 Author Share Posted January 18, 2013 PrestaShop™ 1.5.3.1 here: http://www.adelina-designs.ro Link to comment Share on other sites More sharing options...
Dh42 Posted January 18, 2013 Share Posted January 18, 2013 Search the tpl files for where it uses and img tag. Then copy the alt tag and paste it into the img tag. Then rename the alt tag you just pasted to title. The alt tag should look like this alt="{$product->name|escape:'htmlall':'UTF-8'}" Link to comment Share on other sites More sharing options...
catalin-s Posted January 18, 2013 Author Share Posted January 18, 2013 Thanks, but I’ve already done that. I would like to include also the value from one attribute (in my site the “Unwrapped” and “Wrapped in Tulle” values for the “Tulle wrapping” attribute) and I have no idea how to do that. Thanks, Adrian Link to comment Share on other sites More sharing options...
Dh42 Posted January 19, 2013 Share Posted January 19, 2013 I don't guess I know what you mean. Link to comment Share on other sites More sharing options...
catalin-s Posted January 21, 2013 Author Share Posted January 21, 2013 Maybe I wasn’t very clear, so I am trying to explain again. For the images of the product (in the product pages), is there any possibility to include the name of one attribute in the ALT or TITLE fields of the img tag? I’ve seen someone who included in the ALT of each image the name of the corresponding colors attribute of each image. Anyway, even I would manage to include the values of color attribute I don’t have colors among the attributes of my products. Or, is there any possibility in Prestashop 1.5.x to include some extra text in the ALT or TITLE of each image, something different for each image? Adrian. Link to comment Share on other sites More sharing options...
Dh42 Posted January 21, 2013 Share Posted January 21, 2013 Can you just not enter it where you enter the alt attribute? Link to comment Share on other sites More sharing options...
Recommended Posts