• Resolved webrightnow

    (@webrightnow)


    Latest plugin seems to cause 4 different js errors picked up by the Chrome console, all starting with

    Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.
        at prependElement (priority-menu.js?ver=1.1:47)

    Possible conflict with Twenty Nineteen since priority-menu.js is in the theme’s JS folder, however if I disable Responsive Menu the errors disappear.

    Any way to fix the conflict?

    • This topic was modified 5 years, 5 months ago by webrightnow.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter webrightnow

    (@webrightnow)

    Resolved by removing line 225 in theme’s functions.php:

    wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '1.1', true );

    Errors disappeared and menu behaviour not affected.

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught TypeError’ is closed to new replies.