Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to desactivate weather requests #51

Open
phardouin opened this issue Nov 14, 2015 · 1 comment
Open

how to desactivate weather requests #51

phardouin opened this issue Nov 14, 2015 · 1 comment

Comments

@phardouin
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants