WAIT: Icon Dynamic data does not recognize WooCommerce product category Media field

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hi bricks team,

I have selected SVG icons for WooCommerce categories to render and style them in bricks with the icon element. But the icon data dynamic is not displaying anything. Am I doing something wrong?

Hi @Victor1999,

how did you pick the dynamic data? Or did you manually enter it?

Best regards,
Matej

Hi @Matej,

I can’t pick anything. Bricks doesn’t recognize the product category media field at all.

I see. Here only ACF and MetaBox Icon fields are supported. I guess you don’t have any, so it doesn’t show it.

If you can confirm that you don’t have any, then I’ll mark this as a no-bug, and you will have to use some other element (if it’s SVG, you can try using SVG, otherwise you can use image element).

Best regards,
Matej

Hello @Matej,

Thanks for the solution. The SVG element works great. But if I manually add dynamic data in the icon element, it returns the icon as img. Is this expected behavior?

Hi @Victor1999,

thanks for confirming. But I’m a little confused on your reports, because now you wrote that if you manually add dynamic tag to the icon field, it will return img:

But on the first post, you said it does not display anything.

If the dynamic tag is no from ACF or MB icon fields, I guess it should not display anything, but on the other hand, you manually entered the dynamic tag inside, which should not be the case anyway.
What dynamic tag were you using?

Thank you,
Matej

When I first wrote the report, I didn’t know that it was possible to insert dynamic data manually. I didn’t even know that in the SVG dynamic data element, all dynamic data is displayed (unlike the icon element).

After you gave me your guidance, I tested it and found that dynamic data works fine in the svg element. Then I took the dynamic data and added it to the icon element. In the icon element, the dynamic data is rendered well, but the icons are added with the Img tag. That’s why I asked you if this behavior is normal or not.

Best regards