Support Forum » User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Kyle IversonKyle Iverson
    Participant

    Hi Peter,

    Thanks for the response, but I'm using icon_dir (the folder method), not the JSON method so I don't believe the JSON documentation applies here.

    The issue is that when MetaBox reads the SVG files from the folder and inlines them, the double quotes inside the SVG attributes (which are standard and valid SVG) appear to conflict with the surrounding HTML/JSON context, resulting in the label being displayed as:

    analytics-01-stroke-rounded"> [icon] analytics-01-stroke-rounded

    I was able to work around it by converting all double quotes inside the SVG attributes to single quotes, which resolved the issue. However, double-quoted attributes are completely valid SVG syntax, so this seems like a bug in how MetaBox reads and inlines SVG file contents.

    Could this be looked into?

    Kyle IversonKyle Iverson
    Participant

    Hi Peter,

    That's correct. The code works without using a condition to check the post type but it doesn't work when using a condition.

    I tried a clean install and made sure that I'm targeting the correct post type.

    in reply to: Add a new taxonomy to post #38481
    Kyle IversonKyle Iverson
    Participant
Viewing 3 posts - 1 through 3 (of 3 total)