natejones / wpds

A WordPress digital signage solution that uses Zurb’s Foundation.
http://pixelydo.com/work/wordpress-digital-signage/
GNU General Public License v3.0
105 stars 74 forks source link

how to desactivate weather requests #51

Open phardouin opened 9 years ago

phardouin commented 9 years ago

Hi, I'm not usin the-weather plugin but the theme pull requests to the weather server. The result is blank pages when internet's offline.

How can I desactivate weather requests ?

Thanks a lot

islanddog commented 8 years ago

In the functions.php file you can disable the following code:

// wp_register_script('weather', '//cdnjs.cloudflare.com/ajax/libs/jquery.simpleWeather/3.0.2/jquery.simpleWeather.min.js'); // wp_enqueue_script('weather');

This will cause the script to not load which should deactivate any and all requests.