You can try to make it work with some jQuery code. At first, you need to hide all colors names, then show color name on hover.
I wrote a function for you. Add it to your theme’s functions.php file:
function cf_show_color_name_on_hover() {
?>
<script type="text/JavaScript">
// Hide all color names
jQuery('.color_and_text_link').hide();
jQuery('.rcorners').hover(
function() {
// Show color name on hover
jQuery( this ).parent().parent().find('.color_and_text_link').show();
}, function() {
// Hide color name
jQuery( this ).parent().parent().find('.color_and_text_link').hide();
});
</script>
<?php
}
add_action( 'wp_footer', 'cf_show_color_name_on_hover' );
And configure your widget to show Color and name.
-
This reply was modified 7 years, 8 months ago by Dominykas.