Limit WooCommerce Product Excerpt Length on Search Archive results

Hello,

https://usatcorp.com/?s=IBR900

I have a separate ticket open about how to hide specifically product based excerpts from standard search archive results. But I’d also like to know if there’s a way to just cap their length, and for them to include the READ MORE link.

As of now, they appear to have no limit on their length whatsoever. And then are missing a read more link.

Thanks for your help,

Jesse @ USAT

Hi Jesse,

Thank you for writing in, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

Please follow the methods provided here.

Hope it helps,
Cheers!

I just want to enable excerpts on products.

/**
* Add excerpt to pages
*/

add_post_type_support( 'page', 'excerpt' );

/**
* Add excerpt to faqs
*/

add_post_type_support( 'faqs', 'excerpt' );

/**
* Add excerpt to products
*/

add_post_type_support( 'product', 'excerpt' );

I added these three to functions.php, and all but the last, for products works. If i could set my own excerpt, that would be a perfect solution. Is there anyway you can tell me how to fix that last one so it will work?

Hello Jesse,

Thanks for writing in!

By default, the WooCommerce product post type already supports excerpts. You are already using it. It is the Product short description:
0j1rS3llS52EjRwX7FWDHw

For more details, please check this documentation to do your customizations:

I know that Woocommerce treats that as an excerpt, i was trying to hide a way to add an actual excerpt separate from the short description. A way to disconnect WC from treating short descriptions as excerpts and add my own excerpt text.

Hello Jesse,

What you have in mind may require more customization with WooCommerce plugin. This is beyond the scope of our support already. You may need to contact WooCommerce support instead.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.