wp-admin/index.php and wp-admin/themes.php blank pages
-
Hey!
I was trying to improve my page speed and pagespeed insight recommanded me to defer my javascript.
So i tried to find a way to defer jquery.js and found a website explaining how to do this.I copied this code in the functions.php of my child-theme:
<?php // Defer jQuery Parsing using the HTML5 defer property if (!(is_admin() )) { function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; // return "$url' defer "; return "$url' defer onload='"; } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 ); } ?>Now i’m getting a blank page when my index.php and themes.php .
Of course, i deleted the code, made a clean installation of my theme but it doesn’t work. I renamed my plugins folders and it doesn’t change anything…
I have no idea how to fix this. Any advices?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘wp-admin/index.php and wp-admin/themes.php blank pages’ is closed to new replies.