I used a guide (https://help.groupthought.com/article/660-collections-add-product-sizes-to-collection-pages) to get size swatches showing on the collection page and adjusted a few things to fit my theme (Impulse). I have finally adjusted the style code so the size swatches appear in the correct color, BUT the sizes disappear after a second of being on the screen. It seems like they disappear as my product images are appearing. Anyone else having this issue or know of any suggestions to help?
Code I inserted into the product.grid.item.liquid: