Icon meta box not updating when changing json

Support MB Blocks Icon meta box not updating when changing jsonResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #49229
    Key_WebdesignKey_Webdesign
    Participant

    So I have an MB Blocks custom block with in it an Icon field. It's defined something like this:

    [
    				'type' => 'icon',
    				'id'   => 'custom_icon',
    				'name' => 'Icon',
            'icon_file' => get_theme_file_path('includes/icons.json'),
    			],

    Now, when I add an icon to the icons.json file, it does not show up in the editor when I try to change it.
    Of course, I've tried refreshing and clearing caches but nothing seems to work.

    What could cause this issue?

    #49237
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    This feature works properly on my demo site. When I add another entry to the file icons.json, it shows on the editing page as well.
    I suggest you edit the field group, make some changes and re-save settings to see if it helps.

    #49242
    Key_WebdesignKey_Webdesign
    Participant

    Hi there,
    It might have something to do with the Redis Object Cache. I manually flushed the cache and now the svg icons have been renewed.
    Good to know for other Redis users!

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