• Resolved jonathanservice76

    (@jonathanservice76)


    Hi, in advance thank you for any help offered.
    I have searched online spent 2 days trying to solve this, my client wants the layout in the shop for listing all products to show as follows:

    Product Thumb
    Product Price
    Product Title
    Product Short Description (this will display additional information for each product)

    I have tried the following (in template/functions.php)
    function woocommerce_after_shop_loop_item_title_short_description() {
    global $product;
    if ( ! $product->get_short_description() ) return;
    ?>
    <div itemprop=”description”>
    <?php echo apply_filters( ‘woocommerce_short_description’, $product->get_short_description() ) ?>
    </div>
    <?php
    }
    add_action(‘woocommerce_after_shop_loop_item_title’, ‘woocommerce_after_shop_loop_item_title_short_description’, 5);

    But this does nothing at all!

    Is there a way to show the short description in all product pages so the additional data can be displayed?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add short description to product lists on front page of shop using widget’ is closed to new replies.