Elementor Live Weather
WAtch live weather with api
by Shahadat Hossain Shovon · github.com/zhovon/live-weather-
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/zhovon/live-weather-/archive/refs/heads/main.zipReadme
Live Weather Widget for Elementor
A lightweight, custom Elementor widget that displays real-time weather data for any city. Built with PHP, JavaScript (Fetch API), and the OpenWeatherMap API.
🚀 Features
- Real-Time Data: Fetches current temperature, weather condition, and city info via OpenWeatherMap API.
- Elementor Native: Fully integrated into the Elementor editor interface.
- Custom Styling:
- Card Styling: Control background (classic/gradient), borders, shadows, and padding via Elementor's "Style" tab.
- Typography: Full control over font family, size, weight, and colors for City, Temp, and Description.
- Responsive: Adjust alignment and padding for Desktop, Tablet, and Mobile.
- High-Quality Icons: Dynamically loads high-resolution (
@4x) weather icons with a floating animation. - Zero Dependencies: No heavy libraries (jQuery is used only for Elementor hooks).
🛠️ Installation
- Download: Clone this repository or download the ZIP.
git clone [https://github.com/Zhovon/Live-weather-.git](https://github.com/Zhovon/Live-weather-.git) - Upload:
- ZIP: Compress the
elementor-live-weatherfolder and upload via WordPress Admin > Plugins > Add New. - Manual: Upload the folder to
/wp-content/plugins/.
- ZIP: Compress the
- Activate: Activate the "Elementor Live Weather" plugin. (Requires Elementor to be active).
⚙️ Configuration
- Get API Key: Sign up at OpenWeatherMap and generate a free API Key.
- Add Widget: Open any page in Elementor and search for "Live Weather".
- Setup:
- Drag the widget to the page.
- Paste your API Key.
- Enter a City Name (e.g., Dhaka or London).
- Style: Switch to the Style tab to customize colors and layout.
💻 Tech Stack
- PHP: Widget registration and backend controls.
- JavaScript (ES6): Asynchronous
fetch()requests to handle API data without page reloads. - CSS3: Custom animations and responsive layout.
- Elementor API:
Widget_Baseclass extension.
📝 Author
Zhovon
- Portfolio: zhovon.com
- GitHub: @Zhovon
Note: This widget is a portfolio demonstration. For high-security enterprise environments, it is recommended to proxy API requests through a WordPress REST endpoint to hide the API key.