Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1294156

    Currently I use the Advanced Layout Builder to ‘populate’ the single product pages of WooCommerce with ‘Product Meta Info’ and ‘Product info’ (Avia Blocks).
    I manually added a Title, Image and description.
    These manual Data, I would like to replace with the ‘page titel’, ‘featured image’ and the ‘Excerpt’. Te reduce double data and to fill the page as dynamic as possible.
    Maybe focus on the Excerpt first.
    Can I add a ‘code block’ Avia element to the product page, with code which loads the excerpt?
    Or if this isn’t possible, can I somewhere add code to load the Excerpt in or after the ‘Product Info (Avia Block).

    Thank you very much!

    Sytse

    #1294663

    Hey sberendss,

    Thank you for the inquiry.

    When switching to the Advance Layout Builder, the whole page should be blank, so there should be no duplicate data. The available builder elements for products are currently limited, but you can create custom elements if it is really necessary. Please check the following documentation for more info on how to create a new shortcode path in the child theme directory, where you can create new builder elements.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Best regards,
    Ismael

    #1295786

    Ismael, thanks for your answer. I’ll try to find another way to publish the Excerpt on the product page.

    Sytse

    #1296002

    Hi,

    Alright. Using the the_excerpt or the get_the_excerpt function should help pull out the product description.

    // https://docs.woocommerce.com/document/display-post-excerpt-instead-of-full-content/

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.