Get Custom SVG Icon in cloneable group field

Support MB Group Get Custom SVG Icon in cloneable group field

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49349
    David DenedoDavid Denedo
    Participant

    I created a settings page and added a cloneable group field into it. The group contains an icon field and the icons are added using a json field in my theme.

    When I use rwmb_meta and rwmb_get_value, they both return an array of the icon key like facebook, instagram, etc., but not the actual svg.

    When I use rwmb_the_value, it returns the icons but in a formatted ul/li list.

    How do I accurately retrieve the SVG icons.

    #49359
    PeterPeter
    Moderator

    Hello David,

    Thanks for reaching out.

    Can you please share the JSON and icon files? I will help you use the code to output the SVG icons.

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