Missing closing div in product loop
-
Hello,
I just analysed the source code of my shop archive and noticed some red marked tags. I then compared the structure to Storefront theme and noticed that Neve adds some extra classes (nv-card-content-wrapper, nv-product-image, img-wrap) but the closing div for “nv-product-image” class is missing.
Here is the default structure with Storefront theme:<li class="product ..."> <a href="..." class="woocommerce-LoopProduct-link woocommerce-loop-product__link"> <img src="..." class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" ... /> <h2 class="woocommerce-loop-product__title">Title</h2> </a> <a href="..." class="button product_type_simple">Read more</a> </li>And this is how it should be with Neve:
<li class="product ..."> <div class="nv-card-content-wrapper"> <a href="..." class="woocommerce-LoopProduct-link woocommerce-loop-product__link"> <div class="nv-product-image "> <div class="img-wrap"> <img src="..." class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" ... /> </div> <h2 class="woocommerce-loop-product__title">Title</h2> </div> ---> THIS </div> IS MISSING! </a> </div> </li>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Missing closing div in product loop’ is closed to new replies.
