Product archive page description
-
Hi,
i have entered this snippet in the functions.php:
function tutsplus_excerpt_in_product_archives() {
echo wp_trim_words( get_the_excerpt(), 10 );
}
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘tutsplus_excerpt_in_product_archives’, 40 );to add the product description in the archive pages. The problem is that the text does not wrap as in the description inserted in the product.
How can I do?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Product archive page description’ is closed to new replies.