Swatches
Deselect First Variant
To deselect the first variant, add this code after the plugin code.
<!-- Plugin Swatches - Deselect First Variant --> <script>function deselectFirstVariant(){[].slice.call(document.querySelectorAll(".view-item .c-swatches")).forEach((function(item){var thumbnail=document.querySelector(".ProductItem-gallery-thumbnails-item");thumbnail&&thumbnail.click();var button=item.querySelector(".c-swatches__button.is-active");button&&button.classList.remove("is-active");var select=document.querySelector('select[data-variant-option-name="'+item.getAttribute("data-option")+'"]');select&&(select.selectedIndex=0,select.dispatchEvent(new Event("change")))})),[].slice.call(document.querySelectorAll(".view-item .variant-option-title")).forEach((function(title){title.removeChild(title.children[0])}))}setTimeout(deselectFirstVariant,150)</script> <!-- end Plugin Swatches - Deselect First Variant -->