Support » Plugin: WooCommerce » woocommerce missing css classes

  • Resolved simondeadly


    after update function “wc_product_class” do not return the css classes for the product it’s empty.

    For arhive listing is missing the css classes for the “li” tag: <ul class=”products”> <li class=””>

    And in single product is missing the css classes for tha main “div” after “article” tag:
    <div id=”product-{product_id}” class=””>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Jolley


    In your template files where wc_product_class is called, what is being passed to wc_product_class?

    It should look something like:

    <li <?php wc_product_class( '', $product ); ?>>

    Where $product is the product being displayed.

    Plugin Author peterfabian1000



    an update we have in progress for 3.6.2 should help with this problem:



    I’m having the exact same problem.
    I have rolled back to version 3.5.5 and it fixed the problem.

    I am experiencing the exact same problem on a client website. I have updated to woocommerce 3.6.3 but the class is still being stripped out.

    Was this bug addressed with the release of 3.6.2 or 3.6.3?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.