Home › Forums › WoodMart support forum › Custom product labels with tooltips › Reply To: Custom product labels with tooltips
June 30, 2021 at 1:08 pm
#303653
Kas
Participant
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