After updating wordpress 4.5 my homepage and images not displaying

My site is http://exteriorinteriorsdesign.com/

After Updating wordpress 4.5,it couldn’t load my images and articles on Homepage, and dashboard also doesn’t show when i move my cursor over there.

Any solution?

2 Answers
2

You are using a theme or plugin that uses a jQuery-dependent script with poor syntax. In this screenshot below of the browser console of the page you referenced, the expression should be ... li > a[href*='#']. Note the missing quotes around the #.

Console screenshot of your site

The bug didn’t show up until now because WordPress 4.5 updated the version of jQuery it uses. The new jQuery version doesn’t tolerate the bug. Ideally, your plugin/theme provider should issue a fix.

Until then, you can get the old version of jQuery back by adding the following to your theme’s functions.php file:

function wpse_use_previous_jquery() {
    if ( ! is_admin() ) {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'https://code.jquery.com/jquery-1.11.3.min.js' );
        wp_enqueue_script( 'jquery' );
    }
}
add_action( 'init', 'wpse_use_previous_jquery' );

Leave a Comment