Plugin Author
Labeeb
(@labeeb)
Currrently the plug-in not allowing custome images, i can edit the code and i will make up it for you (if you can pay some amount for the work)
Thank you
Thread Starter
pro01
(@pro01)
Thanks, but no need, mate. I was hoping there is a different set of icons within Google weather API, which you might suggest, but it turns out I need to host my own set. Here’s how I modified the plugin to make this work:
<?php if(get_option($shortname."_icon")=="yes") : ?>
<?php $iconData = str_replace("/ig/images/weather/", "http://randomsite.com/path-to-icons/", $current[0]->icon['data']);
$iconData = str_replace(".gif", ".png", $iconData); ?>
<span class="icon">
<img src=<?php echo $iconData ?> alt="weather" />
</span>