Your account expired support, please renew to get your support.

Support Forum Forums Mixxcazt – Creative Multipurpose WooCommerce Theme Display short description in shop

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2756
    mat3
    Support Expired

    Hello

    Where do we need to put code to display short description in shop page right under the title of each product?

    The code should be this in functions.php:

    add_action( ‘woocommerce_after_shop_loop_item_title’, ‘wc_add_short_description’ );
    /**
    * WooCommerce, Add Short Description to Products on Shop Page
    */
    function wc_add_short_description() {
    global $product;

    ?>
    <div itemprop=”description”>
    <?php echo apply_filters( ‘woocommerce_short_description’, $product->get_short_description() ) ?>
    </div>
    <?php
    }

    but it gets displayed under the Add to cart button.

    #2758

    Please edit this code:

    add_action( ‘woocommerce_after_shop_loop_item_title’, ‘wc_add_short_description’ );

    to:

    add_action( ‘woocommerce_after_shop_loop_item_title’, ‘wc_add_short_description’, 1);

    If you need to help, please send Admin web account for me, I will check and try to help you.

    #2761
    mat3
    Support Expired
    This reply has been marked as private.
    #2763
    This reply has been marked as private.
    #2766
    mat3
    Support Expired
    This reply has been marked as private.
    #2768

    Ok, I have just fixed this issue, please add short description for product: https://prnt.sc/1y85w71

    #2776
    mat3
    Support Expired

    Thank you, it works. What and where have you corrected?

    #2781

    I fixed this code again:

    add_action('woocommerce_shop_loop_item_title', 'wc_add_short_description', 10);
    
    function wc_add_short_description() {
    	global $product;
    
    	?>
            <div itemprop="description">
                <?php echo apply_filters( 'woocommerce_short_description', $product->get_short_description() ) ?>
            </div>
    	<?php
    }
    #2786
    mat3
    Support Expired

    Excellent. One more question. How can we move In stock text up?

    Image

    • This reply was modified 3 years, 1 month ago by mat3.
    #2790

    I have just resolved this issue, please recheck.

    #2791
    mat3
    Support Expired

    Thank you.

    #2796

    Ok, let me know if you need to help and hope you will vote 5 stars for our team.

    Thanks!

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.