fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Hide Image Swatch Tooltip Text

Miguel Wood

My attribute names are causing the image swatch tooltip to expand. It is also redundant to the default tooltip. How can I disable the text in the image swatch tooltip?

2025-01-13_17-37-24.png

Regards,

Miguel

Hakik Zaman

Hi Miguel,

Thanks for reaching out to us.

Please add the following CSS at Appearance > Customize > Additional CSS

.wvs-has-image-tooltip:before {
content: '';
height: var(--image-tip-height-dynamic);
}

Also, add the following snippet using a plugin called Code Snippets:

add_action('wp_footer', function(){
?>
<script id="gwp-remove-title-support">
jQuery('li.variable-item').removeAttr("title");
</script>
<?php
}, 99);

You can also add the above snippet inside your current theme’s functions.php file.

Note: It is recommended to add the Custom Code to the child theme’s functions.php file, to avoid any data loss while updating the Parent Theme.

Hope to hear from you soon.

Thank You