How to Add Variation Titles Display
-
I know this isn’t part of the default functionality and proved to very important to my client. I wanted to give you a snippet of code which seemed to work for my needs so that others might be able to use it.
$( ".tawcvs-swatches" ).append( "<div class='variationTitle'></div>" ); $('.swatch').on('click', function() { var title = $(this).attr('title'); $(this).siblings('.variationTitle').text(title); });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to Add Variation Titles Display’ is closed to new replies.