Hello,
Please clear cache and check now. We’ve made changes in legenda/woocommerce/content-product.php.
Regards
11 replies3 participantsUpdated by Rose Tyler
Hi,
Is missing Alt attribute in /legenda/woocommerce/content-product.php line 78. (or see picture)
This issue is detected by Bing Webmaster SEO Suggestions.
Thank you for your help.
Best regards.
Hello,
Please clear cache and check now. We’ve made changes in legenda/woocommerce/content-product.php.
Regards
Hi,
Not Work. What change ?
"if ( $hoverImg == '' ) $hoverImg = '<img src=' . $hoverUrl . ' alt />';" ?
Regards.
Hello,
I’m not sure if understand your request. Please scan the site now using the plugin. If if you will be not satisfied with result, please explain the problem with more details for better understanding.
Regards
Hi, Sure.
On hover, the image Change :
– First image do not show alt informations.
– Second image (.hide-image) shows alt informations.
For SEO, we nned to have a maximum of image with alt attribute filled
You can see an exemple on the following link.
Regards.
Hello,
Unfortunately, the function that used to show the hover image does not include the alt for the image. Will be ok for you if hover image has the same alt as the main image?
Regards
Hi Olga,
Thank you for your answer.
No, it can’t be the same. I prefer ther is none alt attribute.
It is a bad news. It is really complicate to change the function ? May you work on it for an other update ? It will be great for SEO.
Best regards.
We can replace existing featured image by the first image from the product gallery. Then you’ll get 2 different alts. As I can see that you actually use the gallery image for the featured image, so this will be a good solution for you. What do you think?
Regards
Ok, let’s try. It will be good.
Thank you.
Could you tell me if you change other things that legenda/woocommerce/content-product.php line 75
if ( $hoverUrl != '' ) {
Best regards.
Hello,
We’ve made changes in child-theme/woocommerce/content-product.php Please check now.
Regards
Hi,
Since last version of Legenda there two issue on /woocommerce/content-product.php :
1- line 83 : miss ” ” for alt $hoverAlt.
Solution : alt=" '.$hoverAlt.' ">';
2 – Alt for swaped image dont work : it display the same ALT of the first image.
Solution :
Replace ` elseif ( $product->get_image() ) {
$img_id = get_post_thumbnail_id($post->ID);
$hoverAlt = get_post_meta($img_id , ‘_wp_attachment_image_alt’, true);
}`
By` elseif ( $product->get_gallery_image_ids() ) {
$attachment_ids = $product->get_gallery_image_ids();
$hoverAlt = get_post_meta($attachment_ids[0] , ‘_wp_attachment_image_alt’, true);
}`
i’m not sure it is correct but it work.
Regards
Hello,
Thanks for contacting us.
I’ve sent this information to our developers. They will check and add fixes in the next update of the theme.
Regards
Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.
Free AI store scan · SalesMax
Paste your store address. SalesMax AI shows which upsell moments are missing. No signup.
Free AI speed test · FlashMax
Paste your site address. FlashMax runs Google Lighthouse for phone and desktop, checks Core Web Vitals and lists what to fix. No signup.
Flowers StoreBeauty
(live demo, opens in a new tab)
Eco Scooter StoreSports & travel
(live demo, opens in a new tab)
Jewellery Niche MarketMarketplace
(live demo, opens in a new tab)
TransportCars & bikes
(live demo, opens in a new tab)
Landing WatchElectronics
(live demo, opens in a new tab)
Luxury Jewelry StoreJewellery
(live demo, opens in a new tab)
CorporateBusiness
(live demo, opens in a new tab)
HotelBusiness
(live demo, opens in a new tab)
Hipster StoreFashion
(live demo, opens in a new tab)
Marseille 03Fashion
(live demo, opens in a new tab)
Dokan Multivendor MarketplaceFood & drinks
(live demo, opens in a new tab)
BarbershopBeauty
(live demo, opens in a new tab)
Games DarkToys & games
(live demo, opens in a new tab)
Online CoursesBusiness
(live demo, opens in a new tab)
Minimal Fashion StoreFashion
(live demo, opens in a new tab)
Engineer StoreElectronics
(live demo, opens in a new tab)