Hi,
I am building custom woocommerce product template.
I would like add Short description below Title as on picture.
I found to use Single field with post excerpt.
1. Problem is I would like to have no limit with words. (post excerpt limit is 40 words max)
2. Also I would like to have html here to add custom buttons. (post excerpt import pure text without html)
Any idea how to solve this
Hi Lukas,
Thank you for getting in touch.
Can you try using the shortcode instead of using the single field block. Try using this shortcode in the classic editor block.
[wpv-post-excerpt]
Please let me know if this helps.
Thanks,
Shane
Hi Shane,
shortcode fixed max lenght but it still reads pure text ;/
html code:
<div class="wp-block-buttons">
<div class="wp-block-button">Datasheet</div>
<div class="wp-block-button">Ask for product</div>
</div>
reads:
Datasheet Ask for product
my goal is to have custom buttons in products page - downloadable pdf's + any other links.
Hi Lukas,
I believe there is a fundamental misuse of the product short description field.
The formatted content that you want to use should either be added to a custom field or the post body.
So what you can do is to create a custom field for the short description and then add your information there. This way you can use the single field block to retrieve the information with all of the formatting that was added.
Thanks,
Shane
Thanks Shane, Custom field saved my day! 🙂
Body wasn't good for me because I had there another content I would like to display below those buttons.
Anyway, create custom field for product template and connect it with normal wp button solved it 🙂