Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1442411

    Is there a way to convert builder elements to shortcodes to use them in another place?

    Example:

    I create a section with an image and a button in a page. As I can add a custom CSS class, imagine I can add a custom shortcode name.

    Then I go to another page and add that shortcode that will be displayed.

    If I edit the original, then everything else gets updated.

    The idea is that the client can edit visually the section and done. I know I can add any content to any page with functions, but then the client will need to know how to do that and that is what I am trying to avoid.

    Maybe a custom content shortcode plugin or something similar?

    Any recommendations?

    Thanks.

    #1442502

    Hey peterolle,

    Thank you for the inquiry.

    Have you tried using the Custom Element Templates? They function similarly to builder elements but can be updated globally. Please refer to the documentation below for more info:

    // https://kriesi.at/documentation/enfold/custom-element-templates/

    Best regards,
    Ismael

    #1442532

    Hey Ismael.

    I will use that content below woocommerce products, so it needs to be using shortcodes or other method.

    This is the scenario and example:

    The client creates a callout.
    I add that below related products.
    The client can edit that callout anytime.

    Thank you.

    #1442760

    Hi,

    Then I go to another page and add that shortcode that will be displayed.

    Looks like the Page Content element might be of use here. You can use this element to display the content of another page. If this is not the case, then I’m afraid you’re out of options. You may need to look for a plugin or extension.

    Best regards,
    Ismael

    #1443184

    Hey Ismael.

    How can I insert that content in other page using a function?

    Let’s say under related products in a product page, where there is no builder available.

    Thank you.

    #1443219

    Hi,

    You can use the Page Content element’s shortcode along with template hooks to insert it below the related products section. Example:

    add_action('woocommerce_after_single_product_summary', function() {
     echo do_shortcode("[av_postcontent link='page,3206' av_uid='av-lw4q0mos' sc_version='1.0']";
    }, 25);
    

    Best regards,
    Ismael

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