Shortcodes

Metro theme has one shortcode with 2 templates: default and compact.

NB! We don’t recommend to add shortcodes to widget areas for properly work and displacing of the shortcode.

Options

Option Description Values
Use default plugin settings allows to add shortcode based on Theme Settings configuration Yes/No
City Name allows to define default location for widgets ans shordcodes text value selected via Google Autocomplete or added manually
Temperature allows to define default temperature units value from the drop-down list. More information about measurement units you can find here
Wind Speed allows to define defaultwind speed units value from the drop-down list. More information about measurement units you can find here
Pressure allows to define default pressure units value from the drop-down list. More information about measurement units you can find here
Show current weather allows to enable/disable displaying of current weather Yes/No
Show 5 day forecast allows to enable/disable displaying of 5 day forecast Yes/No
Template allows to define widget template value from dropdown list. This option is available if widget supports several template types
Image allows to set image form standard WordPress Media Gallery imsge size defined in the Theme Settings
Text Color allows to change text color HEX color (e.g. #f2f2f2)
Background Color allows to change background color HEX color (e.g. #f2f2f2)
Background Opacity, % allows to change background opacity
0 – transaprent background, 100 – opaque background
positive integer value from 0 to 100

Shortcodes

Shortcode with Default template

Default template

Shortcode, Compact template

Compact template

WordPress Admin Panel

WCP OpenWeather Shortcode
WCP OpenWeather Shortcode Options

Please, leave a feedback about the page. Was this article helpful?

0 1