Elementor breaks on adding code to function
-
Hello!
I manage to break this amazing plugin by adding this below code to the function.php file.
I add below code to functions.php page and after this I was not able to edit any object using Elementor. Every time I select “Edit with elementor” it will get stuck on the loading screen.
I was able to load the page in safe mode but that doesn’t help.I am not sure how this is affecting the plugin but once I removed the code elementor started working and my PageSpeed rank fell back to B.
I have commented this code for time being.
//JS deferred parsing /*commented becasue it breaks elementor * function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return "$url' defer "; } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 ); */How to reproduce the error: Add above code to at the end of the functions.php file.
Wordpress: 5.5.1
PHP: 7.2
Theme: Yungen
Elementor: 3.0.9
The topic ‘Elementor breaks on adding code to function’ is closed to new replies.