Hi,
I need the same peace of JS code which you are using here : -> https://prntscr.com/1rhx0c1
to put it into the filter widget area in here: -> https://prntscr.com/1rhx6gv
I’m hiding traditional text with css by doing this :
.woodmart-woocommerce-layered-nav .show-labels-off .wc-layered-nav-term:not(.with-swatch-text) .layer-term-name {
display: none;
}
so instead, I want to make JS call the class (<span class=”layer-term-name”>White</span>) where the attribute name is located every time when the customer will hover over the filtered image.
Please help me to achieve it as I can’t find that source code part to put in Custom JS.
Thanks