Linux 软件免费装
Banner图

Global Weather Pro: Weather Widget for WP

开发者 alfloyd
更新时间 2026年12月3日 02:49
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

ai weather forecast weather-forecast weather-widget

下载

2.13.8 2.8.0 2.11.9 2.11.0 2.7.13 2.14.0 2.13.9 2.13.10 2.13.0 2.13.1 2.11.5 1.1.03 1.1.05 2.13.2 1.1.08 1.1.15 2.13.11 2.7.15 1.1.20 2.11.6 2.13.3 2.13.12 2.13.4 2.15.1 2.13.5 1.0.04 1.0.05 1.0.12 1.0.14 1.0.02 1.1.10 1.0 1.1.04 1.1.07 1.1.09 1.1.21 1.0.07 1.1.13 1.0.11 1.1.06 2.13.6 1.1.14 1.1.16 1.1.11 1.0.06 2.11.7 1.0.01 1.0.03 1.0.1 1.1.01 1.1.12 2.10.1 2.13.7 2.11.11 2.15.2 2.11.10 2.8.3 2.8.5 2.8.6 2.9.0 2.9.3 2.11.1 2.11.2 2.11.3 2.11.4 2.12.0 2.16.0 2.17.0

详情介绍:

Global Weather Pro is a free WordPress weather widget plugin that displays accurate weather forecasts and critical severe weather alerts for any location in the world. It gives you three ways to put weather on your WordPress site: a comprehensive header widget, a compact sidebar widget, and a native Weather Widget block for the block editor and Full Site Editing themes. Effortlessly display current weather conditions, detailed 7-day forecasts, air quality, and severe weather alerts to keep your visitors informed and engaged. The plugin also ships stunning AI-generated animations for all 60+ WeatherAPI weather conditions, each one playing as a smooth looping video in the header widget, or shown as a still image if you prefer a calmer look. Make the widgets your own with 18 professional typefaces and an adjustable text size for each widget, and self-host every one of them with a single click for a fully Google-free, privacy-friendly setup. All weather data and alerts are sourced from WeatherAPI, a well-known and trusted weather provider, ensuring reliable and professional-grade forecasts you can count on. Global Weather Pro handles all API communications through our dedicated service, meaning you get reliable data from top providers like WeatherAPI without needing to sign up for, manage, or pay for your own weather API key. Check out the live demos to see both widgets in action: Sidebar Demo Header Demo Features: Whether you run a WordPress blog, a business website, or a community portal, Global Weather Pro makes it easy to share up-to-date local weather with your audience.

安装:

  1. Upload the plugin files to /wp-content/plugins/global-weather-pro, or install the plugin through the WordPress plugin screen.
  2. Activate the plugin through the 'Plugins' menu.
  3. Go to Settings > Global Weather Pro and save the location you want the weather widget to display.
  4. Add the weather widget to your site using whichever method suits your theme:
  5. Block editor or Full Site Editing theme: Edit any post, page, or template, click the block inserter, search for "Weather Widget," and place the block. In the block sidebar you can choose the header or sidebar layout and, optionally, override the location and color theme for that block only.
  6. Classic theme: Navigate to "Appearance" > "Widgets" and add either the "Global Weather Pro Header" or "Global Weather Pro Sidebar" widget to your desired widget area.
  7. Shortcode: Use [gwpro_header_weather] to display the header widget, or [gwpro_sidebar_weather] to display the sidebar widget, anywhere shortcodes are accepted.

屏幕截图:

  • The compact sidebar weather widget on mobile, dark mode theme.
  • The weather widget embedded in a page via shortcode, mobile view, light mode theme.
  • The admin settings page for entering a custom weather location.
  • Shortcode section of the settings page with one-click copy buttons.

升级注意事项:

2.17.0 Adds a Background Type setting: show the header widget's condition as a looping video or as a still image. Poster images now live next to their videos in the ai-animations folder. 2.16.0 Fixes the hourly Gusts tab showing "Gusts Now" instead of "Gusts". Recommended for everyone using the header widget. 2.15.1 Wind speeds in km/h now come straight from the forecast. If your custom CSS targets the header widget's gust ids or the hourly Gusts tab classes, see the changelog for the new names. 2.15.0 Fixes the header widget being cut off in normal page columns, stops widget styles from affecting your theme, makes pages with a widget much lighter, and shows notices on fewer screens. Recommended for everyone. 2.7.15 Fix release. The Global Weather Pro Header and Sidebar blocks now appear in the block inserter and load their weather data correctly in block theme templates. Recommended for anyone using the block editor or a block theme. 2.7.13 Documentation release. The Weather Widget block for the block editor and Full Site Editing themes, which has shipped since 2.7.0, is now documented in the installation instructions and FAQ. No code changes; upgrading is optional.

常见问题:

Can I change the font and text size of the weather widget?

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.

Can I load the fonts without contacting Google?

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.

How do I add a weather widget to my WordPress site?

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.

Does this weather widget work with Gutenberg and block themes?

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.

Can I show weather for more than one location on the same site?

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.

Do I need a weather API key?

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.

Does Global Weather Pro use AI to generate the forecasts?

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.

Do the AI weather animations slow down my site?

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.

Can I show a still image instead of the animation?

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.

How does the widget display severe weather alerts?

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.

Is Global Weather Pro good for SEO?

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.

Does this weather widget work with my WordPress theme?

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

更新日志:

For the complete version history (all releases), see the readme.txt revision log: https://plugins.trac.wordpress.org/log/global-weather-pro/trunk/readme.txt 2.17.0 - 2026-12-02 2.16.0 - 2026-12-02 2.15.1 - 2026-11-24