svg-inline.js loads before jquery
-
Hi,
Great plugin! But it did not fully work, until I noticed your javascript was not properly placed in the header. It was loaded BEFORE jQuery!
To fix this, replace:
wp_register_script('bodhi_svg_inline', plugins_url('svg-support/js/svg-inline.js'), array(''), '1.0.0', false );with:
wp_register_script('bodhi_svg_inline', plugins_url('svg-support/js/svg-inline.js'), array('jquery'), '1.0.0', false );in enqueue.php inside functions folder in the plugin directory.
Cheers! π
The topic ‘svg-inline.js loads before jquery’ is closed to new replies.