-
AuthorPosts
-
September 15, 2015 at 5:17 pm #503525
The other day my site’s widget editing interface was “locked” so I couldn’t open/move/edit widgets, and my widgets disappeared from the front end. I’m not equipped to troubleshoot/fix such problems, so I paid a web site fixer shop called Fantasktic to fix it for me.
Their initial assessment:
“So far we see the issue is about javascript in the backend, it happens almost randomly as at first we were able to manage widgets, but on later tests we couldn’t do so again. We’ll be trying to determine in which of the many js files involved is the issue, it’s not quick to trace as wordpress merges all the js files into a single request.”They eventually fixed the problem and reported this as the solution:
“The fix is about disabling the JS script called “svg_painter”, it’s causing a conflict in your current theme+plugins combination. Disabling it from the theme’s functions file solves the problem.”Heard of such a thing before? Thoughts? If fixing the problem required removing that from the functions file, what’ll happen when I update the theme? I’m using a child theme, but the problematic code in the updated version of the main theme would still carry over from the updated theme right? Potentially re-introducing the problem.
Appreciate any advice.
September 15, 2015 at 5:56 pm #503574Hi JeeBar!
I’m not familiar with any “svg_painter” script we are using in Enfold. Is that a plugin your using?
Cheers!
ElliottSeptember 15, 2015 at 6:09 pm #503585Ah, perhaps I misinterpreted what they meant by “disabling it from the theme’s functions file.”
I thought that’s where it lived and they were commenting it out.
Maybe it’s somewhere else, part of a plugin, and it gets commented out in the functions.php.
I’ll see if they can tell me which plugin it comes from, then find an alternative to that.September 15, 2015 at 9:27 pm #503710Hi!
alright, let us know if you still need help with this issue. We will let this thread open for you.
Regards,
AndySeptember 18, 2015 at 3:25 am #505198They did their thing in the functions.php of my Child Theme, so I’m not worried about updates to core Enfold squirreling it up.
Here’s what they did. Figure might as well post the solution in case somebody else runs into same problem.
function wp_dequeue_svg_painter() {
wp_dequeue_script( ‘svg-painter’ );
}
add_action( ‘wp_print_scripts’, ‘wp_dequeue_svg_painter’, 999 );September 18, 2015 at 10:19 am #505335 -
AuthorPosts
- You must be logged in to reply to this topic.