Add custom ID attribute to all woocommerce products on archive pages

enter image description here

I noticed every product has a custom class like class="post-396516" However i would also like this value to be an ID attribute not just a class on all product

  • ‘s in woocommerce archive pages.

    Is there a function i can add to my child theme to accomplish this?

    Thanks for any help!

    Read more here:: Add custom ID attribute to all woocommerce products on archive pages

  • Leave a Reply

    Your email address will not be published. Required fields are marked *