Meta Box
Support › MB Blocks › Icon Field output empty
Hi!
I've create a block including the icon field. I'm using SVG codes (json file). The dropdown works well and shows the icons and the icon titles.
The following code works well to get the icon title:
$icontitle = mb_get_block_field( 'icon' ); echo $icontitle;
I tried using the following code to display the icon but it doesn't output anything at all.
$icon = mb_the_block_field( 'icon' ); echo $icon;
How can I display the icon?
Hello,
Thanks for your feedback.
I can see the issue on my demo site, the code to output the icon name/title works properly but not the SVG itself. I've escalated this issue to the development team to fix it. I will get back to you later.
Thank you, Peter!
I have the same issue with using SVG in json file. I did it like the documantary.
I use for the output these:
<?= $value[ 'icon' ] ?? ''; ?>
Is the issue already fix or is there another way to output SVG?
Thanks