Write the shortcode on page/post editor –
Example → [location-weather-pro] Example with attribute → [location-weather-pro auto_location="true" date="true"] PHP Template Inclusion → <?php echo do_shortcode('[location-weather-pro]'); ?> PHP Template Inclusion with Attribute → <?php echo do_shortcode('[location-weather-pro city="London" country="UK" unit="c"]'); ?>
Attribute | Default value | Options | Description |
---|---|---|---|
auto_location | true | true / false | Activate / deactivate auto location detection option.
Note: The site has to be secured (SSL/https). |
date | true | true / false | Show/hide the current date. |
humidity | true | true / false | Show/hide humidity update. |
wind | true | true / false | Show / hide wind update. |
unit | f | f / c | Set temperature showing unit. “f” Fahrenheit and “c” for Celsius. |
city | london | any city name | Write the name of your city. To emphasize your location, include the county name too. e.g. Rome, Oneida |
country | GB | ISO 3166 Country code | Write the country code name if needs. |
icon_color |
#444444
|
color code | Set icon color. |
color |
#444444
|
color code | Set text color. |
background | #fff | color code | Set background color. |