Home Forums Themes Support Pangja in shop page all products are shows full description

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3495

    please help me to solve this problem.
    all products are shows full description in shop page.

    Attachments:
    You must be logged in to view attached files.
    #3498

    Hi,
    That’s seem your short description have ul tag and it cause this issue.
    You can fix it by following steps (we’ll update it in next version):
    Step 1: Go to wp-content/themes/pangja/woocommerce/ then open file content-product.php
    Step 2: Go to line 99 and change the code from:

    <?php
                if ( is_shop() || is_product_category() || is_product_tag() ) {
                    the_excerpt();
                }
            ?>

    to

    <div class="product-short-description">
                    <?php
                    if ( is_shop() || is_product_category() || is_product_tag() ) {
                        the_excerpt();
                    }
                    ?>
                </div>

    Step 3: Go to Appearance -> Customize -> Additional CSS and add this code:

    .haru-archive-product .archive-product-wrapper ul.products.grid li.product .product-short-description {
    display: none;
    }
    .haru-archive-product .archive-product-wrapper ul.products.list li.product .product-short-description {
    display: block;
    }

    Hope this help!

    ****
    Regards,
    HaruTheme

    • This reply was modified 2 years, 4 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.