• Resolved jurajk

    (@jurajk)


    Hi, i’m having trouble using own svg icons from the media library. I get a javascript error vhen i select one in the media library:


    Uncaught TypeError: Cannot read property 'hasOwnProperty' of undefined admin.min.js?ver=0.4.0:1
    b.view.miPreview.miImage.b.view.miPreview.extend.render admin.min.js?ver=0.4.0:1
    (anonymous function) load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:251
    x.each.x.forEach load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:247
    _.extend._attach load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:251
    _.extend.set load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:251
    _.extend.add load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:251
    d.view.PriorityList.d.View.extend.set load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:463
    b.view.AttachmentsBrowser.miImage.b.view.AttachmentsBrowser.extend.createPreview admin.min.js?ver=0.4.0:1
    b.view.miBrowser.createSingle admin.min.js?ver=0.4.0:1
    k load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    b.Events.trigger load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    c.extend._onModelEvent load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    k load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    b.Events.trigger load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    h.model.Selection.c.extend.single load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:252
    k load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    b.Events.trigger load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    c.extend.reset load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:249
    d.view.Attachment.d.View.extend.toggleSelection load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:463
    d.view.Attachment.d.View.extend.toggleSelectionHandler load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,un…:463
    n.event.dispatch load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jq…:3
    r.handle load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jq…:3

    https://www.ads-software.com/plugins/menu-icons/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey!

    As of version 0.4.0 SVG icons are not supported yet. You can of course convert your svg icons to font with Fontello. The only drawback is that the icons will be monochrome.

    I’ll see if I can add direct SVG icons support in the next release.

    Thread Starter jurajk

    (@jurajk)

    Hi,

    thanks for the speedy response. i already have a working solution using ACF repeater and options page, but using standard wp menu made much more sense for me user-wise.

    thanks anywas, i’ll keep an eye on updates!

    juraj

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SVG support’ is closed to new replies.