[Support request] Woocommerce Product and Category page problem

Home Forums Support [Support request] Woocommerce Product and Category page problem

Home Forums Support Woocommerce Product and Category page problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #2340274

    I have seen a problem in Products and single category pages.

    In the html under the main tag It sets an article tag with the id and all he classes from the first product shown:

    <article id="post-2635" class="post-2635 product type-product status-publish has-post-thumbnail product_cat-1-5-cristal-curvo-caliente product_cat-vitrinas first instock purchasable product-type-simple" itemtype="https://schema.org/CreativeWork" itemscope="">
      <div class="inside-article">
        <div class="entry-content" itemprop="text">
          <header class="woocommerce-products-header">

    Inside the ul tag with the product lists in it put the correct classes:

    <li class="product type-product post-2635 status-publish first instock product_cat-1-5-cristal-curvo-caliente product_cat-vitrinas has-post-thumbnail purchasable product-type-simple">

    I’m trying to make category filter but it doesn’t work because the article tag have the same classes that the li of the products.

    I thought it was some issue with my configuration, but I have seen in the niche site (https://gpsites.co/niche/shop/) that there’s this problem also.

    Here’s an screenshot:


    Customer Support

    Hi there,

    i am not sure theres an easy fix to that.
    How does the filter your building work? Is it Javascript ?


    Yes It’s Javascript, finally i made it work.

    I have adapted this code (https://www.w3schools.com/howto/howto_js_filter_elements.asp) and it works, but it have issues with pagination and woocommerce result count so I have to find another way to achieve what I want, the WooCommerce plugin WooCommerce Product Search is the most similar that I found but it doesn’t fit exactly what I want.

    Customer Support

    Maybe an Ajax filter ? – there are a few available like this one:


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