| 开发者 | alfloyd |
|---|---|
| 更新时间 | 2026年12月3日 02:49 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/global-weather-pro, or install the plugin through the WordPress plugin screen.Yes. In Settings > Global Weather Pro, the Typography card lets you choose from 18 professional fonts in Sans-Serif, Serif, Monospace and Display styles, and set the text size of the header and sidebar widgets separately, from 12px to 24px (16px is the default). All of a widget's text, including its severe weather alert window, scales together and keeps its proportions, while the weather animations and icons keep their size. The selected font is applied to every part of both widgets, so your WordPress theme's own fonts never override it.
Yes. Click "Download & Self-Host All Fonts" in the Typography card and all 18 font families are saved to your own server, each with its license file. After that, visitors' browsers never contact Google Fonts, which helps with privacy rules such as the GDPR. Any font not yet downloaded loads from Google Fonts in the meantime, so the widget always displays correctly.
There are three ways, and all of them produce the same widget. Block editor or Full Site Editing theme: open any post, page, or site template, click the block inserter, and search for "Weather Widget." Choose the header or sidebar layout in the block settings sidebar. Classic theme: navigate to "Appearance" > "Widgets" in your WordPress admin panel and add either the "Global Weather Pro Header" or "Global Weather Pro Sidebar" widget to your desired location, such as your header, footer, or sidebar. Shortcode: embed the widgets directly into your posts and pages using [gwpro_header_weather] for the header widget or [gwpro_sidebar_weather] for the sidebar widget. Note that the original shortcode, [gwpro_global_weather_pro], now functions as an alias for the sidebar widget shortcode for backward compatibility, so any existing instances of the old shortcode continue to work without issue.
Yes. Global Weather Pro registers a native "Weather Widget" block that works in the block editor, inside Full Site Editing templates and template parts, and anywhere else blocks are allowed. The block is server-rendered and reuses the same output pipeline as the classic widgets and the shortcodes, so there is one source of truth for the markup, the scripts, and the weather data. This matters on a block theme, because block themes have no "Appearance" > "Widgets" screen at all. On those themes, use the block (or a shortcode block) rather than the classic Widgets screen.
Yes, using the block. Each Weather Widget block can set its own location, which overrides the location saved in the plugin settings for that block only. A block with no location set simply inherits your global setting. The same applies to the dark and light color themes, so a block placed in a dark page template can differ from the site-wide default. The classic widgets and the shortcodes always use the location saved under Settings > Global Weather Pro.
No. Global Weather Pro routes all API communication through our own dedicated service, so you never have to sign up for, manage, renew, or pay for a weather API key of your own. Install the plugin, save a location, and the forecasts and severe weather alerts start working immediately.
If you would rather use your own key, you can. Enter a key from WeatherAPI.com under Settings > Global Weather Pro, or define GWPRO_WEATHERAPI_KEY in wp-config.php, and your site will request forecasts and alerts from WeatherAPI directly. The key stays on your server and is never sent to visitors' browsers. Free WeatherAPI plans include a 3-day forecast, so the 7-day strip shows 3 days on a free key.
No, and the distinction matters. Global Weather Pro uses artificial intelligence for its visual layer only. Every one of the 60+ weather conditions reported by WeatherAPI (condition codes 1000-1282) has its own AI-generated animation, displayed in the header of the weather widget so the animation always matches the reported condition, including day and night variants. Every condition's animation plays as a looping video. The forecasts, air quality readings, and severe weather alerts themselves are not AI-generated or AI-predicted. They come directly from WeatherAPI, a professional meteorological data provider. Your visitors see AI-created artwork paired with real, trusted weather data.
No. All AI-generated animation files are bundled with the plugin and served from your own site, so displaying them requires no third-party image service, no AI API key, and no per-request AI costs. Nothing is generated on the fly at page load. The artificial intelligence work was done in advance, so the animations add no latency. Each animation is a small, muted video that is downloaded only when the widget is close to being scrolled into view and pauses while out of view. Visitors who have asked their device for reduced motion, or turned on a data saver, see a still image instead unless they press play. If you choose Static Images under Background Type in the settings, the videos are never downloaded at all.
Yes. In Settings > Global Weather Pro, the Background Type card offers two choices. Animated Videos, the default, plays each condition's looping video. Static Images shows the same artwork as a still image: nothing moves, there is no pause button, and the video is never downloaded, which makes your pages lighter. The still image always matches the current condition, including day and night variants. The sidebar widget uses weather icons and is not affected by this setting.
Severe weather alerts are sourced from WeatherAPI and displayed prominently inside the widget so visitors see them immediately. Alerts appear alongside current conditions in the header widget, the sidebar widget, and the block, and no configuration is required. Alerts for the widget's location surface automatically whenever the provider issues them.
Global Weather Pro is built not to hurt your SEO, and to give search engines real content to read. Each widget's forecast is included in the page's HTML as plain text (location, current conditions, and a short outlook), so crawlers can read it without running JavaScript. The space for the widget is reserved while the page loads, so it does not cause layout shift, which is one of Google's Core Web Vitals. The forecast data is cached on your server and sent with the page, so the widget makes no weather API requests from your visitors' browsers.
Global Weather Pro is designed to work with most WordPress themes, classic and block-based alike. If you experience any issues, please create a topic on our official WordPress support forum so our team and the community can assist you: Official Plugin Support Page
images/condition-images/ai-animations/, with the same name as the video (for example smoke-haze-day.mp4 and smoke-haze-day.webp). The static-posters folder is no longer used. The dashboard cards use the same posters.#gwpro-maxwind-mph and #gwpro-maxwind-kph are now #gwpro-header-gust-mph and #gwpro-header-gust-kph.#gwpro-label-wind-speed is now #gwpro-label-gusts..tabcontent-maxwindmph and .tabcontent-maxwindkph are now .tabcontent-gustmph and .tabcontent-gustkph. The 7-day Wind tab, which shows maximum sustained wind, keeps the .tabcontent-maxwind* classes.wind_gust_spd is now maxwind_spd, because WeatherAPI provides maximum sustained wind, not gusts, for each day. The hourly key wind_gust_spd still holds gusts.
For older releases, see changelog.txt.