If I use that code I get a lot of errors:
Uncaught TypeError: Cannot set property ‘controls’ of undefined
at Object.<anonymous> (editor.min.js:2)
at Function.each (load-scripts.php?c=0&load[]=underscore,shortcode,utils,jquery-core,jquery-migrate,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.2:5)
at Object.success (editor.min.js:2)
at i (load-scripts.php?c=0&load[]=underscore,shortcode,utils,jquery-core,jquery-migrate,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.2:5)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=underscore,shortcode,utils,jquery-core,jquery-migrate,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.2:5)
at Object.e.<computed> [as resolve] (load-scripts.php?c=0&load[]=underscore,shortcode,utils,jquery-core,jquery-migrate,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.2.2:5)
at common.min.js:2
at Array.forEach (<anonymous>)
at success (common.min.js:2)
at Object.i.success (common.min.js:2)
Warning: Use of undefined constant ?elementor – assumed ‘?elementor’ (this will throw an Error in a future version of PHP) in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: Use of undefined constant widgets – assumed ‘widgets’ (this will throw an Error in a future version of PHP) in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: A non-numeric value encountered in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: A non-numeric value encountered in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: Division by zero in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: Use of undefined constant widgets_registered? – assumed ‘widgets_registered?’ (this will throw an Error in a future version of PHP) in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: A non-numeric value encountered in /public_html/wp-content/themes/electro-child/functions.php on line 146
Warning: Division by zero in /public_html/wp-content/themes/electro-child/functions.php on line 146
Do you have antoher solution?
-
This reply was modified 5 years, 4 months ago by SLV.