WordPress.org

Support

Support » Plugins and Hacks » ZigWeather » [Resolved] ZigWeather plugin – How to use custom images?

[Resolved] ZigWeather plugin – How to use custom images?

Viewing 1 replies (of 1 total)
  • I resolved this issue myself and figured I would post my method.

    In zigweather/widgets.php I disabled this:
    <img src=”<?php echo $zigweather->get_iconurl($info)?>” alt=”” width=”120″ />

    And I then replaced it with:
    if(($zigweather->get_description($info)) == Clear) {
    echo “<img src=’your-own-custom-image-url’ width=’120′ />”;
    } else if(($zigweather->get_description($info)) == Sunny) {
    echo “<img src=’your-own-custom-image-url’ width=’120′ />”;
    } else……….etc

    Obviously “your-own-custom-image-url” should be the url to the image you want displayed. Good luck with that!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] ZigWeather plugin – How to use custom images?’ is closed to new replies.
Skip to toolbar