It’s possible. You’d need to hook a function into woocommerce_after_shop_loop_item_title that conditionally checks for the homepage before outputting the product description.
Thanks
But Problem is Description comes with a link an I want only plain text
How are you pulling the description in?
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘my_add_short_description’, 9 );
function my_add_short_description() {
echo ‘<span class=”title-description”>’ . the_excerpt() . ‘</span>’;
}
and if i remove span class than also the result is same.
Sorry, should have asked this question as well; what link is coming in?
Or do you mean that the excerpt is also part of the link? If it’s the latter, try hooking into woocommerce_after_shop_loop_item instead.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
@vik9, Can you create your own thread instead of taking over someone else’s? https://ww.wp.xz.cn/support/theme/storefront#postform
@vik9 Andrew is correct. In future please create a new topic ๐
@jameskoster :: Ok will take care of that in Future.
@jameskoster,@Andrew :: I will take care of this in future.
Sorry.
Thanks for help