Custom product labels with tooltips
-
Hi, I am adding custom product labels in addition to the existing ones (on sale, new, hot) and am wondering if you could advise if it would be possible to set up a tooltip on label hover? Tooltip should contain label description from relevant attribute term description field. I understand that is not a default theme functionality but can you advise if I can add a code snippet that would add a tooltip itself and a dynamic description field?
Thanks.
Hello,
Thank you very much for choosing our theme and for contacting us.
Unfortunately, it is not possible to make the tooltip on the label. Please check this article, it may be useful: https://xtemos.com/docs/woodmart/faq-guides/add-custom-labels/
If you have any questions or need further help, please feel free to contact us.
Best Regards
Hi, thank you for your response.
I made my own custom tooltip which I appended to the custom label span element. Is there a more user friendly way I can feed the tooltip text dynamically in the code snippet – I mean the text from the relevant label attribute term description field?
jQuery(document).ready(function( $ ){
$(“.label-term-davana”).addClass(“tooltip-custom”).append(‘<span class=”tooltiptext”>Some Tooltip Text</span>’);
});
Thanks
Hello,
Such modification requires complicated customization that is not covered by our support.
Please try search for a plugin.
If you have any questions or need further help, please feel free to contact us.
Best Regards