Hello,
The most e-commerce websites we see at our competitors contain a small tooltip when the customer hovers over the product title, that shows the whole product title that helps with accessibility. It seems to be a native html attribute that the most websites fill. As far as I can unsterstand, when the product title element is created, the title attribute serves as an alt text and the title shows up as a tooltip when the user hovers over the title.
Is there a way to implement this to your theme?
I’m not sure which part of the code I should refactor to my child’s theme function.php, so that the product title element that is generated by the theme contains the “title” attribute.
Could you please advise if there’s a way to enable this functionality within the theme? If so, any guidance on which part of the code needs modification would be greatly appreciated.
Implementing this tooltip feature would significantly improve the accessibility of our website for all users.
I attach a screenshot from a different website that has this feauture and a screenshot from our website that currently doesn’t.
Thank you very much for your help in advance.
Kind regards.