• Which file should I change to display the weather information. Currently is display

    San Francsico,
    * scattered clouds
    * Temp: 52?°F
    * Wind: NW at 16 mph
    * Clouds: scattered clouds
    * Visibility: 10 miles

    I like it to display in a single line like this.

    Current weather in San Francsico * scattered clouds * Temp: 52?°F * Wind: NW at 16 mph

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rocky2889

    (@rocky2889)

    You should be able to do that manually by tweaking the relevant sections in WeatherIcon.php. Would be below the stuff that’s set up for the Options Page display…. look for function WeatherIcon ($station='KLFK') – should be around there.

    Thread Starter rocky2889

    (@rocky2889)

    I have no idea about php,
    all I see is this scripts.

    <div class=”wrap”>
    <h2><?php _e(‘Usage Information’, ‘WeatherIcon’); ?></h2>

    1. <?php _e(‘Add a snippet like this wherever you want the weather to appear:’, ‘WeatherIcon’); ?>
      <?php if (function_exists('WeatherIcon')) : ?><br/>
      <li class="weather">San Francisco, U.S.A<br/>
      <?php WeatherIcon('KSFO'); ?>

    <br/>

    <br/>
    <?php endif; ?>

    </div>

    The section I told you to look for is in the WeatherIcon.php file which you would upload to your server. I’m pretty sure what you want to do would be handled in that section. I don’t know how to make it do that myself….

    You might try posting on Jeremiah’s blog – he might be able to give you more help.

    you can call the function and specify what you want before and after each name value pair.

    it defaults to ‘li’ and ‘/li’ but you can choose anything you like.

    just call the function like this:
    WeatherIcon('KLFK','before','after')

    change ‘before’ and ‘after’ to whatever you want.

    in this case, I guess it would be:
    WeatherIcon('KSFO','*','')

    –Jeremiah

    Thread Starter rocky2889

    (@rocky2889)

    Thanks Jeremiah, everything is working fine. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Modify WeatherIcon Display Format’ is closed to new replies.