On the archive page, we need to mark the first variation for the product after loading the page. We have the variation set to hover.
In the code we try to do it this way by adding it per element
current.attr (‘aria-selected’, true);
but it doesn’t work. It does not change the photo into a photo of variations, it is still the first main one and that’s not what we want.
Thanks for reaching out to us.
Unfortunately, we have no feature to mark the first variation for the product after loading the page.
You can put your feature request here- https://storepress.fider.io/
But you can use default options (provided by WooCommerce) to choose variations after loading the page.