-
sascha
Hey there,
I’m currently building a custom WooCommerce single product layout using a Block Element hooked to
before_single_productfor all product pages. Inside the Block Element, I’m adding GenerateBlocks text blocks with Dynamic Data. I have disabled the default Woo product template, works well so far, product title, price and other meta will be displayed correctly.{{post_excerpt}}works correctly and outputs the product short description in the frontend. However, when I try to use{{post_content}}, nothing is rendered. Alternatively, if I use the[woocommerce_product_description]shortcode inside a Shortcode block, the shortcode itself is displayed as plain text instead of rendering the product description.Is this expected behavior because of the
before_single_producthook being outside the normalthe_content()execution? What would be the recommended way to output the main product description within a Block Element hooked into WooCommerce without enabling PHP execution?Thanks in advance for your help
Sascha -
George
Hello.
Try adding, a Dynamic Content block instead and choose
Post Contentas Type.
- You must be logged in to reply to this topic.