mono1 Posted February 2, 2014 Share Posted February 2, 2014 Hello I was wondering if anybody could have any idea that can be of help. The problem is the following: When I put a name of a product then this name is automatically copied as the caption of the image of the product. i.e. image caption=product name As far as I understand it, the caption of the image is used like the ALT derscription of the image and this ALT description is the one that are used by the image search engines for their results. I would like to have different name of the product, lets say the name will be a catalog code name like BA115F and at the caption I want to use other name (more descriptive) like basket for bicycles. i.e. image caption different than product name Is this possible? If it is not possible though the back office, is there any knowledge if this is achievable thought mysql, meaning changing the appropriate cell at mysql database without risking damaging the database? Thank you Link to comment Share on other sites More sharing options...
Ciseur Posted February 3, 2014 Share Posted February 3, 2014 To select a custom legend (alt text) to a product image simply fill the "Legend" field when you upload your image : If your theme use the right value as alt attribute, each image got a custom alt value. Link to comment Share on other sites More sharing options...
mono1 Posted February 3, 2014 Author Share Posted February 3, 2014 Dear Ciseur, unfortunately this applies to Prestashop 1.5 and not 1.4. BTW in PS 1.5 as I see the Caption description have been replaced with Legend. The problem described in my question still remains at the new PS version. The idea is to present the product with a product code BA115F and at the caption/legend which serves like an ALT description to use other name (more descriptive) like basket for bicycles which is better for SEO. Although thank you for dropping a line. Link to comment Share on other sites More sharing options...
Matia.info Posted March 18, 2015 Share Posted March 18, 2015 To select a custom legend (alt text) to a product image simply fill the "Legend" field when you upload your image : If your theme use the right value as alt attribute, each image got a custom alt value. There is a problem in my installation PS ver.1.6.0.14, that after I upload another image, it rewrtes a Legend of all images already uploaded, so they have the same name. I want a different name for each image. Any solutions? Link to comment Share on other sites More sharing options...
Kanenas Posted May 4, 2016 Share Posted May 4, 2016 Similar problem here but the problem occurs on google sitemap. I just realized I have been wasting 10s of hours writing descriptive alts in the back end and they're not even in the sitemap. Actually I am getting the image alt I want from the backend 'legend' section but there is STILL a problem in the sitemap as the sitemap generates the 'title' of the image as the product name. The sitemap generated from gsitemap.php - and the line with the problem seems to be 'title_img' => htmlspecialchars(strip_tags($product->name)), As the product title is already mentioned in the sitemap, and there is no image alt field in the sitemap, only image title, I am assuming that this should be the 'legend' which I have so carfully included on every photo in the back-end in vain. As I know nothing about databases, can someone please tell me what I should change my php to (this line) to point to the alt/legend image title field? ALSO How the hell get gsitemap to display not just the cover photo of each product but all the images? I see there's a module on this but I can't go to the hassle of intalling a module (risk of patchy disaster from my experience) just for a few lines of code in gsitemaps... HELP anyone? Link to comment Share on other sites More sharing options...
littleeglantine Posted August 14, 2017 Share Posted August 14, 2017 Hello, I have the same issue with prestashop 1.6.1 and would very much like to know where to go in the DB to put the right code so that the image ALT corresponds to the caption we entered in the back office, and not the current product description, which is too long and not good for SEO and the images being properly indexed by Google. Could also someone give me the right code to add? Also, the sitemap only indexes the main image for each product, and not each one of them. Has anyone found a solution ? Thank you very much in advance... Link to comment Share on other sites More sharing options...
pedepot Posted August 14, 2017 Share Posted August 14, 2017 From the database structure point of view, it is possible to populate a different caption for the images associated to a given products. Basecally, when the field is empty, Prestashop uses the product name. Unfortunately, there is no built-in capability in Prestashop for that. You would need a module. Link to comment Share on other sites More sharing options...
littleeglantine Posted August 15, 2017 Share Posted August 15, 2017 thank you very much Pedepot, this is very useful. Link to comment Share on other sites More sharing options...
pedepot Posted August 20, 2017 Share Posted August 20, 2017 Here is a paid module at addons https://addons.prestashop.com/en/seo-natural-search-engine-optimization/26877-seo-images-alt-tags.html I found a cheaper one at https://codecanyon.net/item/product-images-seo-editor/18701759 Make your own opinion. Best regards, Link to comment Share on other sites More sharing options...
littleeglantine Posted August 22, 2017 Share Posted August 22, 2017 Thank you very much. I bought the EK sitemap generator with images Module: https://addons.prestashop.com/en/seo-natural-search-engine-optimization/19224-ek-sitemap-generator-with-images.html and it solved the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now