Dynamically outputting SVG's in a Query Loop

Support General Dynamically outputting SVG's in a Query Loop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43037
    Basil BabaaBasil Babaa
    Participant

    Please provide me details on how to output an SVG to the screen dynamically from MetaBox in Bricks Builder. I'll need to know the correct field type for the SVG as well as the best field ID name and also how to write the html in a codebox so that I can dynamically pull svg's into a feature card grid repeater.

    When working in Bricks Builder, putting this in a Code box outputs the SVG to the screen as it should:

    <object data="/wp-content/uploads/instagram-line.svg" type="image/svg+xml"></object>

    BUT, when re-writing the above code, replacing the data path with the Meta Box custom field delineator, then nothing is output to the screen:

    <object data="{mb_package_feature_card_icon_path}" type="image/svg+xml"></object>

    So, I just need to know the correct steps, field type to use, and proper way to construct the code (if different from above) in the Bricks Builder Code box.

    #43053
    PeterPeter
    Moderator

    Hello,

    The custom field variable in the builder is created by Bricks builder so I recommend contacting Bricks support to get more information.

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