Skip to content

Instantly share code, notes, and snippets.

@halgatewood
Created March 16, 2017 16:21
Show Gist options
  • Select an option

  • Save halgatewood/a5279c250cc8da6001826d565a688b01 to your computer and use it in GitHub Desktop.

Select an option

Save halgatewood/a5279c250cc8da6001826d565a688b01 to your computer and use it in GitHub Desktop.
How to add icons to the Awesome Weather Widget Pro showcase template.
<?php foreach( $weather_forecast as $forecast ) { ?>
<div class="awesome-weather-forecast-day">
<i class="<?php echo $forecast->icon; ?>"></i>
<div class="awesome-weather-forecast-day-abbr"><?php echo $forecast->day_of_week; ?></div>
<div class="awesome-weather-forecast-day-temp"><?php echo $forecast->temp; ?></div>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment