Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

WC Custom Shop Page

Home / Forums / Kadence Theme / WC Custom Shop Page

This topic is: Resolved
[Resolved]
Posted in: Kadence Theme
October 16, 2021 at 6:28 am

add_action( 'woocommerce_after_shop_loop_item', 'show_products_excerpts', 5 );
function show_products_excerpts() {
global $product;

echo "<span class='class-name-here'>" . $product->post->post_excerpt . "</span>";
}

I’ve used the above snippet to show the “product short description” data in product grids and it works great on Woocommerce Shop page. Here is the result, you can see “product short description” information on each grid:

But when I use Kadence Blocks (“Products by Category” block) to make a custom shop page, I can’t see this product short description data on each grid. Should I use another snippet for this? Here is the example page, as you can see there is no product short description on each product cart:

Can you please help?

  • The forum ‘Kadence Theme’ is closed to new topics and replies.